/* ===== ADMIN PANEL STYLES - DARK THEME VERSION ===== */

:root {
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-card: #2a2a2a;
    --dark-border: #3a3a3a;
    --dark-text: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-accent: #667eea;
    --dark-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dark-hover: rgba(102, 126, 234, 0.1);
}

body {
    background: var(--dark-bg);
    color: var(--dark-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== ADMIN CONTENT ===== */

.admin-content {
    min-height: 100vh;
}

/* ===== HEADER GLASS ===== */

.header-glass {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(58, 58, 58, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand .logo-glow {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.nav-brand .admin-badge {
    position: absolute;
    top: -8px;
    right: -40px;
    background: var(--dark-gradient);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dark-gradient);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.admin-user:hover {
    background: var(--dark-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--dark-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-avatar svg {
    width: 24px;
    height: 24px;
}

.user-name {
    font-weight: 600;
    color: var(--dark-text);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-border);
    margin-bottom: 1rem;
}

.user-role {
    font-weight: 600;
    color: var(--dark-accent);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.user-email {
    color: var(--dark-text-secondary);
    font-size: 0.85rem;
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: var(--dark-text);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    font-size: 0.9rem;
}

.menu-item:hover {
    background: var(--dark-hover);
}

.menu-item svg {
    width: 18px;
    height: 18px;
}

/* ===== ADMIN HERO ===== */

.admin-hero {
    background: var(--dark-gradient);
    color: var(--dark-text);
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bokeh-lights {
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.aurora-gradient {
    background: linear-gradient(45deg, 
                rgba(102, 126, 234, 0.1) 0%, 
                rgba(118, 75, 162, 0.1) 50%, 
                rgba(102, 126, 234, 0.1) 100%);
    animation: aurora 15s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(45deg, #fff, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-dashboard-preview {
    perspective: 1000px;
}

.dashboard-mockup {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.dashboard-mockup:hover {
    transform: rotateY(-10deg) rotateX(5deg);
}

.mockup-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mockup-dots {
    display: flex;
    gap: 0.5rem;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.mockup-content {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.mockup-chart {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.mockup-data {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.data-row {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.data-row:nth-child(2) {
    width: 80%;
}

.data-row:nth-child(3) {
    width: 60%;
}

/* ===== QUICK ACTIONS ===== */

.quick-actions {
    background: var(--dark-surface);
    padding: 4rem 2rem;
}

.actions-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.action-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.action-card:hover::before {
    opacity: 0.05;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.action-card.primary {
    border-color: #667eea;
}

.action-card.secondary {
    border-color: #764ba2;
}

.action-card.accent {
    border-color: #f093fb;
}

.action-card.info {
    border-color: #4facfe;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--dark-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.action-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.action-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--dark-text);
    position: relative;
    z-index: 2;
}

.action-card p {
    color: var(--dark-text-secondary);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    position: relative;
    z-index: 2;
}

.action-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--dark-text-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
    color: var(--dark-text);
}

.action-arrow svg {
    width: 24px;
    height: 24px;
}

/* ===== CARS MANAGEMENT ===== */

.cars-management {
    background: var(--dark-bg);
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    background: var(--dark-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--dark-text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.search-filters {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--dark-text-secondary);
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--dark-accent);
    border-radius: 12px;
    background: var(--dark-card);
    color: var(--dark-text);
    font-size: 1rem;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.search-input:focus {
    outline: none;
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--dark-accent);
    background: var(--dark-card);
    color: var(--dark-accent);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark-accent);
    color: white;
}

.cars-table-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.cars-table {
    width: 100%;
    border-collapse: collapse;
}

.cars-table th {
    background: var(--dark-surface);
    color: var(--dark-text);
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--dark-border);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cars-table td {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text);
    vertical-align: middle;
}

.cars-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.car-image-cell {
    width: 80px;
}

.car-image-thumb {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-surface);
    font-size: 2rem;
}

.car-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-brand-model {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.car-details-small {
    font-size: 0.85rem;
    color: var(--dark-text-secondary);
    margin-bottom: 0.25rem;
}

.car-specs-small {
    font-size: 0.8rem;
    color: var(--dark-accent);
    font-weight: 500;
}

.price-cell {
    text-align: right;
}

.price-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-text);
}

.featured-badge {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

.type-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-text);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-badge.draft {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.archived {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.actions-cell {
    width: 120px;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn.view {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.action-btn.edit {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.action-btn.delete {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.no-cars-message {
    padding: 4rem 2rem;
    text-align: center;
}

.no-cars-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-cars-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-cars-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--dark-text);
}

.no-cars-content p {
    color: var(--dark-text-secondary);
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

/* ===== MODAL STYLES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    color: var(--dark-text);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--dark-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--dark-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--dark-text);
    background: var(--dark-hover);
}

/* ===== ADD CAR MODAL ===== */

.add-car-modal {
    max-width: 800px;
    width: 100%;
    background: var(--dark-card);
    color: var(--dark-text);
}

.add-car-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--dark-border);
    border-radius: 12px;
    background: var(--dark-surface);
    color: var(--dark-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: var(--dark-text-secondary);
    opacity: 0.7;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--dark-accent);
}

.checkbox-label {
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}

/* ===== BULK UPLOAD MODAL ===== */

.bulk-upload-modal {
    max-width: 700px;
    width: 100%;
    background: var(--dark-card);
    color: var(--dark-text);
}

.bulk-upload-content {
    padding: 2rem;
}

.upload-instructions {
    margin-bottom: 2rem;
}

.upload-instructions h3 {
    margin: 0 0 1rem 0;
    color: var(--dark-text);
}

.upload-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--dark-text-secondary);
    line-height: 1.8;
}

.upload-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-preview {
    background: var(--dark-surface);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.upload-preview h4 {
    margin: 0 0 1rem 0;
    color: var(--dark-text);
}

.preview-table {
    margin-bottom: 1.5rem;
}

.preview-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.75rem;
    background: var(--dark-card);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.preview-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text-secondary);
    font-size: 0.9rem;
}

.preview-more {
    text-align: center;
    color: var(--dark-accent);
    font-style: italic;
    padding: 1rem;
}

/* ===== FOOTER GLASS ===== */

.footer-glass {
    background: var(--dark-surface);
    border-top: 1px solid var(--dark-border);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--dark-text);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: var(--dark-text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section a {
    color: var(--dark-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--dark-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-border);
}

.footer-bottom p {
    color: var(--dark-text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--dark-card);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--dark-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: var(--dark-text);
}

.toast-success {
    border-color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.toast-error {
    border-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
}

.toast-info {
    border-color: #2196f3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
}

/* ===== ANIMAZIONI ===== */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes aurora {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .add-car-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .upload-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .action-card {
        padding: 1.5rem;
    }
    
    .cars-table {
        font-size: 0.85rem;
    }
    
    .cars-table th,
    .cars-table td {
        padding: 1rem 0.5rem;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        margin-right: 0.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */

.preserve-3d {
    transform-style: preserve-3d;
}

.gpu-accelerated {
    will-change: transform;
    transform: translateZ(0);
}

.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.magnetic {
    transition: transform 0.3s ease;
}

.magnetic:hover {
    transform: scale(1.05);
}
