/* Admin Dashboard Styles - Minimalist Volvo Design */

/* Import Global Dark Theme */
@import url('global-dark-theme.css');

/* Import Global Modals */
@import url('global-modals.css');

:root {
    /* Volvo Color Palette - Minimalist */
    --volvo-blue: #003057;
    --volvo-light-blue: #4a90a4;
    --volvo-accent: #0078d4;
    --volvo-white: #ffffff;
    --volvo-gray-50: #f8f9fa;
    --volvo-gray-100: #f1f3f4;
    --volvo-gray-200: #e8eaed;
    --volvo-gray-300: #dadce0;
    --volvo-gray-400: #9aa0a6;
    --volvo-gray-500: #5f6368;
    --volvo-gray-600: #3c4043;
    --volvo-gray-700: #202124;
    --volvo-gray-800: #1a1a1a;
    
    /* Dark Theme Colors - Based on Image Design */
    --dark-bg-primary: #1a1a1a;
    --dark-bg-secondary: #2d2d2d;
    --dark-bg-tertiary: #3a3a3a;
    --dark-text-primary: #ffffff;
    --dark-text-secondary: #e0e0e0;
    --dark-text-muted: #b0b0b0;
    --dark-border: #404040;
    --dark-accent-green: #4caf50;
    --dark-accent-blue: #2196f3;
    --dark-accent-yellow: #ffc107;
    --dark-accent-orange: #ff9800;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-body {
    background: var(--volvo-gray-50);
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    color: var(--volvo-gray-700);
    line-height: 1.6;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Minimalist */
.admin-sidebar {
    width: 280px;
    background: var(--volvo-white);
    border-right: 1px solid var(--volvo-gray-200);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: width 0.3s ease;
}

/* Collapsed Sidebar - Professional Design */
.admin-sidebar.collapsed {
    width: 70px;
    background: var(--volvo-white);
    border-right: 1px solid var(--volvo-gray-200);
}

.admin-sidebar.collapsed .sidebar-header {
    padding: var(--space-lg) var(--space-sm);
    border-bottom: 1px solid var(--volvo-gray-200);
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-sidebar.collapsed .sidebar-header h2 {
    display: none;
}

.admin-sidebar.collapsed .sidebar-header .logo-img {
    height: 24px;
    width: 24px;
}

.admin-sidebar.collapsed .sidebar-nav {
    padding: var(--space-sm) 0;
}

.admin-sidebar.collapsed .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-sm);
    margin: var(--space-xs) var(--space-sm);
    border-radius: 8px;
    color: var(--volvo-gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
}

.admin-sidebar.collapsed .nav-item:hover {
    background: var(--volvo-gray-100);
    color: var(--volvo-gray-800);
}

.admin-sidebar.collapsed .nav-item.active {
    background: var(--volvo-blue);
    color: white;
}

.admin-sidebar.collapsed .nav-item i {
    font-size: 1.1rem;
    margin: 0;
}

.admin-sidebar.collapsed .nav-item span {
    display: none;
}

.admin-sidebar.collapsed .theme-toggle-section {
    padding: var(--space-sm) var(--space-sm);
    border-top: 1px solid var(--volvo-gray-200);
    border-bottom: 1px solid var(--volvo-gray-200);
    display: flex;
    justify-content: center;
}

.admin-sidebar.collapsed .theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    padding: 0;
    justify-content: center;
    background: var(--volvo-gray-100);
    border: 1px solid var(--volvo-gray-300);
    color: var(--volvo-gray-700);
    transition: all 0.2s ease;
}

.admin-sidebar.collapsed .theme-toggle-btn:hover {
    background: var(--volvo-gray-200);
    border-color: var(--volvo-gray-400);
}

.admin-sidebar.collapsed .theme-toggle-btn i {
    font-size: 1rem;
}

.admin-sidebar.collapsed .theme-toggle-btn span {
    display: none;
}

.admin-sidebar.collapsed .nav-user-section {
    margin-top: auto;
    padding: var(--space-sm) var(--space-sm);
    border-top: 1px solid var(--volvo-gray-200);
}

.admin-sidebar.collapsed .user-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--space-sm);
    background: none;
    border: none;
    border-radius: 8px;
    color: var(--volvo-gray-700);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.admin-sidebar.collapsed .user-menu-toggle:hover {
    background: var(--volvo-gray-100);
}

.admin-sidebar.collapsed .user-avatar {
    width: 32px;
    height: 32px;
    background: var(--volvo-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.admin-sidebar.collapsed .user-name {
    display: none;
}

.admin-sidebar.collapsed .user-menu-toggle i:last-child {
    display: none;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    top: 1rem;
    right: -15px;
    z-index: 1001;
    background: var(--volvo-blue);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: var(--volvo-blue-dark);
    transform: translateY(-1px);
}

.admin-sidebar.collapsed .sidebar-toggle {
    right: -15px;
}

/* Tooltip for collapsed sidebar */
.admin-sidebar.collapsed .nav-item {
    position: relative;
}

.admin-sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--volvo-gray-800);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
    margin-left: 0.5rem;
    box-shadow: var(--shadow-md);
}

.admin-sidebar.collapsed .nav-item::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--volvo-gray-800);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1002;
    margin-left: -0.5rem;
}

.admin-sidebar.collapsed .nav-item:hover::after,
.admin-sidebar.collapsed .nav-item:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Theme Toggle Section */
.theme-toggle-section {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--volvo-gray-200);
    border-bottom: 1px solid var(--volvo-gray-200);
    display: flex;
    justify-content: center;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--volvo-gray-100);
    border: 1px solid var(--volvo-gray-300);
    border-radius: 6px;
    color: var(--volvo-gray-700);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    background: var(--volvo-gray-200);
    border-color: var(--volvo-gray-400);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

/* User Menu Section */
.nav-user-section {
    margin-top: auto;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--volvo-gray-200);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-sm);
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--volvo-gray-700);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-menu-toggle:hover {
    background: var(--volvo-gray-100);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--volvo-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.user-menu-toggle i:last-child {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.user-menu.open .user-menu-toggle i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--volvo-gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-bottom: var(--space-sm);
}

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

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--volvo-gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.user-dropdown-item:hover {
    background: var(--volvo-gray-100);
}

.user-dropdown-item.logout {
    color: var(--volvo-red);
}

.user-dropdown-item.logout:hover {
    background: var(--volvo-red-light);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--volvo-gray-200);
    margin: var(--space-xs) 0;
}


.admin-sidebar.collapsed .user-dropdown {
    left: 100%;
    bottom: 0;
    margin-left: var(--space-sm);
    margin-bottom: 0;
    min-width: 200px;
}

.admin-sidebar.collapsed .user-dropdown::before {
    content: '';
    position: absolute;
    left: -5px;
    bottom: 20px;
    border: 5px solid transparent;
    border-right-color: white;
}

.sidebar-header {
    padding: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--volvo-gray-200);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.sidebar-header .logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(15%) sepia(25%) saturate(2000%) hue-rotate(200deg) brightness(0.3);
}

.sidebar-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--volvo-gray-700);
    letter-spacing: -0.01em;
}

.sidebar-nav {
    padding: var(--space-md) 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--volvo-gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-item:hover {
    background: var(--volvo-gray-50);
    color: var(--volvo-gray-700);
    border-left-color: var(--volvo-gray-300);
}

.nav-item.active {
    background: var(--volvo-gray-50);
    color: var(--volvo-blue);
    border-left-color: var(--volvo-blue);
    font-weight: 600;
}

.nav-item.logout {
    margin-top: var(--space-xl);
    border-top: 1px solid var(--volvo-gray-200);
    padding-top: var(--space-xl);
    color: var(--volvo-gray-500);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    margin-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--volvo-white);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--volvo-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--volvo-gray-200);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.user-dropdown-menu.show {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--volvo-gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--volvo-gray-100);
}

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

.user-dropdown-item:hover {
    background: var(--volvo-gray-50);
    color: var(--volvo-gray-700);
}

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

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: var(--space-xl);
    background: var(--volvo-gray-50);
    transition: margin-left 0.3s ease;
}

/* Main content when sidebar is collapsed */
.admin-sidebar.collapsed ~ .admin-main {
    margin-left: 70px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    background: var(--volvo-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--volvo-gray-200);
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--volvo-gray-800);
    margin: 0 0 var(--space-sm) 0;
    letter-spacing: -0.02em;
}

.header-left p {
    color: var(--volvo-gray-500);
    margin: 0;
    font-size: 0.95rem;
}

.header-actions {
    display: flex;
    gap: var(--space-md);
}

/* Stats Section */
.stats-section {
    margin-bottom: var(--space-xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.stat-card {
    background: var(--volvo-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all 0.2s ease;
    border: 1px solid var(--volvo-gray-200);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--volvo-gray-300);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--volvo-gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--volvo-blue);
    font-size: 1.25rem;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--volvo-gray-800);
    margin: 0 0 var(--space-xs) 0;
    letter-spacing: -0.01em;
}

.stat-content p {
    color: var(--volvo-gray-500);
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.content-card {
    background: var(--volvo-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--volvo-gray-200);
}

.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--volvo-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--volvo-gray-50);
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--volvo-gray-800);
    margin: 0;
    letter-spacing: -0.01em;
}

.card-content {
    padding: var(--space-xl);
}

/* Appointments List */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.appointment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--volvo-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--volvo-blue);
    transition: all 0.2s ease;
}

.appointment-item:hover {
    background: var(--volvo-gray-100);
    transform: translateX(2px);
}

.appointment-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--volvo-gray-800);
    margin: 0 0 var(--space-xs) 0;
}

.appointment-info p {
    color: var(--volvo-gray-600);
    margin: 0 0 var(--space-xs) 0;
    font-size: 0.85rem;
}

.appointment-time {
    font-size: 0.8rem;
    color: var(--volvo-gray-500);
}

.status-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-booked {
    background: rgba(0, 120, 212, 0.1);
    color: var(--volvo-accent);
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.status-vorbereitet {
    background: rgba(255, 193, 7, 0.1);
    color: #f57c00;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

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

.status-cancelled {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--volvo-gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--volvo-accent);
    transition: all 0.2s ease;
}

.event-item:hover {
    background: var(--volvo-gray-100);
    transform: translateX(2px);
}

.event-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--volvo-gray-800);
    margin: 0 0 var(--space-xs) 0;
}

.event-info p {
    color: var(--volvo-gray-600);
    margin: 0 0 var(--space-xs) 0;
    font-size: 0.85rem;
}

.event-time {
    font-size: 0.8rem;
    color: var(--volvo-gray-500);
}

.event-stats {
    display: flex;
    gap: var(--space-md);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--volvo-accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--volvo-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--volvo-blue);
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Quick Actions */
.quick-actions {
    background: var(--volvo-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--volvo-gray-200);
}

.quick-actions h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--volvo-gray-800);
    margin: 0 0 var(--space-lg) 0;
    letter-spacing: -0.01em;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-md);
    background: var(--volvo-gray-50);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--volvo-gray-700);
    transition: all 0.2s ease;
    border: 1px solid var(--volvo-gray-200);
}

.action-card:hover {
    background: var(--volvo-blue);
    color: var(--volvo-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--volvo-blue);
}

.action-card i {
    font-size: 1.5rem;
}

.action-card span {
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

/* Professional Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before {
    display: none;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 6px;
    min-height: 32px;
}

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    min-height: 44px;
}

/* Primary Button - Volvo Blue */
.btn-primary {
    background: linear-gradient(135deg, var(--volvo-blue) 0%, #004a7c 100%);
    color: var(--volvo-white);
    border: 1px solid var(--volvo-blue);
    box-shadow: 0 4px 12px rgba(0, 48, 87, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004a7c 0%, var(--volvo-accent) 100%);
    border-color: var(--volvo-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 87, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.2), 0 4px 12px rgba(0, 48, 87, 0.3);
}

/* Secondary Button - Clean Gray */
.btn-secondary {
    background: var(--volvo-white);
    color: var(--volvo-gray-600);
    border: 2px solid var(--volvo-gray-300);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--volvo-gray-50);
    color: var(--volvo-gray-700);
    border-color: var(--volvo-gray-400);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Success Button - Green */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 1px solid #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    border-color: #20c997;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-success:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2), 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Danger Button - Red */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: 1px solid #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    border-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2), 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Warning Button - Orange */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    border: 1px solid #ffc107;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-warning:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2), 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Info Button - Blue */
.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 1px solid #17a2b8;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    border-color: #117a8b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn-info:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2), 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Icon-only buttons */
.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
}

.btn-icon.btn-sm {
    min-width: 28px;
    min-height: 28px;
    padding: 0.375rem;
}

/* Button Groups */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.action-buttons .btn {
    flex-shrink: 0;
    min-width: 32px;
}

/* Action button specific styles */
.action-buttons .btn-icon {
    transition: all 0.2s ease;
}

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

.action-buttons .btn:not(.btn-icon) {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-height: 32px;
}

.action-buttons .btn:not(.btn-icon) span {
    margin-left: 0.25rem;
}

/* Responsive action buttons */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .action-buttons .btn-icon {
        width: auto;
        align-self: center;
    }
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 250px;
    }
    
    .admin-sidebar.collapsed {
        width: 70px;
    }
    
    .admin-main {
        margin-left: 250px;
    }
    
    .admin-sidebar.collapsed ~ .admin-main {
        margin-left: 70px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }
    
    .admin-sidebar.collapsed {
        width: 280px;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--f1-red);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Order number input styling */
.order-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-input {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    max-width: 160px;
}

.order-input::placeholder {
    color: #9aa0a6;
}

.order-input:focus {
    outline: none;
    border-color: var(--f1-red);
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
}

.order-form .btn.btn-sm.btn-secondary {
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
}

/* Service Badges */
.services-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid;
}

.service-wiper {
    background: rgba(0, 168, 204, 0.1);
    color: var(--volvo-accent);
    border-color: rgba(0, 168, 204, 0.3);
}

.service-check {
    background: rgba(212, 175, 55, 0.1);
    color: var(--volvo-gold);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-storage {
    background: rgba(0, 48, 87, 0.1);
    color: var(--volvo-blue);
    border-color: rgba(0, 48, 87, 0.3);
}

.service-badge i {
    font-size: 0.7rem;
}

/* Settings Page */
.settings-form {
    max-width: 1000px;
    margin: 0;
}

.settings-section {
    background: var(--volvo-white);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--volvo-shadow);
    border: 1px solid rgba(0, 48, 87, 0.05);
}

.settings-section h2 {
    color: var(--volvo-blue);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--volvo-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--volvo-blue);
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.1);
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    background: var(--volvo-light-gray);
}

.current-logo {
    text-align: center;
}

.current-logo img {
    max-width: 120px;
    max-height: 80px;
}



    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--volvo-shadow);
}

.current-logo p {
    margin-top: 0.5rem;
    color: var(--volvo-medium-gray);
    font-size: 0.9rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--volvo-blue);
    color: var(--volvo-white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.upload-btn:hover {
    background: var(--volvo-accent);
    transform: translateY(-1px);
}

.upload-btn input[type="file"] {
    display: none;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.form-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Autohaus Selection Styles */
.autohaus-selection {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--volvo-gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--volvo-gray-200);
}

.autohaus-selection h4 {
    color: var(--volvo-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.autohaus-selection .selection-info {
    color: var(--volvo-gray-600);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.autohaus-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.autohaus-option {
    background: var(--volvo-white);
    border: 2px solid var(--volvo-gray-200);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.autohaus-option:hover {
    border-color: var(--volvo-light-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.autohaus-option.selected {
    border-color: var(--volvo-blue);
    background: rgba(0, 48, 87, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.1);
}

.autohaus-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.autohaus-option-header h5 {
    margin: 0;
    color: var(--volvo-blue);
    font-size: 1rem;
    font-weight: 600;
}

.autohaus-short {
    background: var(--volvo-light-blue);
    color: var(--volvo-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.autohaus-option-details p {
    margin: 0.25rem 0;
    color: var(--volvo-gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.autohaus-option-details i {
    color: var(--volvo-light-blue);
    width: 14px;
}

.loading-autohaus {
    text-align: center;
    padding: 2rem;
    color: var(--volvo-gray-500);
}

.loading-autohaus i {
    margin-right: 0.5rem;
}

.autohaus-error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.autohaus-error i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.autohaus-selection-confirmed {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: var(--radius-md);
    text-align: center;
}

.selection-confirmed {
    color: #28a745;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.selection-confirmed i {
    font-size: 1.1rem;
}

/* Disabled button state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--volvo-gray-400) !important;
    border-color: var(--volvo-gray-400) !important;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Theme Toggle Styles */
.theme-toggle-section {
    margin: 1rem 0;
    padding: 1rem;
    border-top: 1px solid var(--volvo-gray-200);
    border-bottom: 1px solid var(--volvo-gray-200);
}

.theme-toggle-btn {
    background: var(--volvo-gray-100);
    color: var(--volvo-gray-600);
    border: 1px solid var(--volvo-gray-300);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.theme-toggle-btn:hover {
    background: var(--volvo-blue);
    color: var(--volvo-white);
    border-color: var(--volvo-blue);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

/* Dark Theme Implementation - Now handled by global-dark-theme.css */
