/* Admin Dashboard Inline Styles - Extracted for Performance */

/* Modern Sidebar Layout */
.admin-container {
    position: relative;
}

.admin-main {
    min-height: 100vh;
    background: #f8f9fa;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .admin-main {
    background: #1a1a1a;
}

/* Sidebar collapsed state */
.modern-sidebar.collapsed + .admin-main {
    margin-left: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-main {
        margin-left: 0 !important;
    }
    
    .modern-sidebar.mobile-open + .admin-main {
        margin-left: 0;
    }
}

.nav-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Autohaus Info Styles */
.autohaus-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #e3f2fd;
    border-radius: 6px;
    color: #1976d2;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: fit-content;
}

.autohaus-info i {
    font-size: 0.8rem;
}

/* User Menu Styles */
.nav-user-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #6c757d;
}

.user-menu-toggle:hover {
    background: #f8f9fa;
    color: #495057;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-name {
    flex: 1;
    font-weight: 500;
    text-align: left;
}

.user-menu-toggle .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-menu.active .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

.user-dropdown-item.logout:hover {
    color: #dc3545;
}

.user-dropdown-item i {
    width: 16px;
    font-size: 0.9rem;
}

.user-dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.25rem 0;
}

/* System Management Styles */
.system-management {
    margin-top: 2rem;
}

.system-management h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.management-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.management-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.profile-card:hover {
    border-color: #007bff;
}

.settings-card:hover {
    border-color: #28a745;
}

.users-card:hover {
    border-color: #ffc107;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.profile-card .card-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.settings-card .card-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.users-card .card-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-content p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-actions {
    display: flex;
    align-items: center;
}

.card-link {
    color: #007bff;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.management-card:hover .card-link {
    color: #0056b3;
}

.card-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.management-card:hover .card-link i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 768px) {
    .alert {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .management-grid {
        grid-template-columns: 1fr;
    }
    
    .management-card {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Theme Toggle Styles */
.theme-toggle-section {
    margin: 1rem 0;
    padding: 0 1rem;
}

.theme-toggle-btn {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.theme-toggle-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.theme-toggle-btn i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* Dark theme toggle styles */
[data-theme="dark"] .theme-toggle-btn {
    background: var(--dark-bg-tertiary);
    border-color: var(--dark-border);
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: var(--dark-bg-secondary);
    border-color: var(--dark-accent-blue);
    color: var(--dark-text-primary);
}
/* Professional Test Section Styles */
.test-section {
    margin-top: 2rem;
}

.test-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.test-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.test-card:hover::before {
    transform: scaleX(1);
}

.test-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
    border-color: #007bff;
}

.test-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.test-content {
    flex: 1;
}

.test-content h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
}

.test-content p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.test-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.test-stats .stat {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.test-arrow {
    color: #6c757d;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.test-card:hover .test-arrow {
    transform: translateX(3px);
    color: #007bff;
}

/* Responsive Test Section */
@media (max-width: 768px) {
    .test-grid {
        grid-template-columns: 1fr;
    }
    
    .test-card {
        flex-direction: column;
        text-align: center;
    }
    
    .test-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
