/**
 * CarCleaning010 Admin - Luxury Premium Design
 * Professional, modern, and exclusive styling
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Customer Detail Modal - Force Wide Layout (Non-Responsive, Fixed 1800px) */
/* Super high specificity to override Bootstrap */
body #customerDetailModal.modal .modal-dialog {
    max-width: none !important;
    width: 1800px !important;
    min-width: 1800px !important;
    margin: 1.75rem auto !important;
}

body #customerDetailModal.modal .modal-content {
    width: 100% !important;
}

/* Override ALL Bootstrap responsive breakpoints with high specificity */
@media (min-width: 576px) {
    body #customerDetailModal.modal .modal-dialog {
        max-width: none !important;
        width: 1800px !important;
        min-width: 1800px !important;
    }
}

@media (min-width: 768px) {
    body #customerDetailModal.modal .modal-dialog {
        max-width: none !important;
        width: 1800px !important;
        min-width: 1800px !important;
    }
}

@media (min-width: 992px) {
    body #customerDetailModal.modal .modal-dialog {
        max-width: none !important;
        width: 1800px !important;
        min-width: 1800px !important;
    }
}

@media (min-width: 1200px) {
    body #customerDetailModal.modal .modal-dialog {
        max-width: none !important;
        width: 1800px !important;
        min-width: 1800px !important;
    }
}

:root {
    /* Luxury Color Palette */
    --primary: #0A0E27;
    --primary-light: #1E293B;
    --accent: #C9A961;
    --accent-hover: #B89851;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;

    /* Neutrals */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --background: #F9FAFB;
    --surface: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
}

.login-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.brand-subtitle {
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Navbar */
.navbar {
    background: var(--surface) !important;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link.active {
    color: var(--accent) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* Main Content */
.main-content {
    margin-top: 76px;
    padding: var(--spacing-lg);
    min-height: calc(100vh - 76px);
}

.content-section {
    animation: fadeIn 0.3s ease;
}

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

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: var(--surface);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: white;
    opacity: 0.1;
    border-radius: 50%;
}

.stat-card.bg-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.stat-card.bg-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.stat-card.bg-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.stat-card.bg-info {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-content p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

/* Tables */
.table {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table thead {
    background: var(--primary);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.table tbody tr:hover {
    background: var(--background);
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #DC2626 100%);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn i {
    margin-right: 0.375rem;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.input-group-text {
    background: var(--background);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Modals */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #1E40AF;
}

.alert-success {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #065F46;
}

.alert-warning {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #92400E;
}

.alert-danger {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    color: #991B1B;
}

/* Toast */
.toast {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: none;
}

.toast-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.875rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

/* List Group */
.list-group-item {
    border: 1px solid var(--border);
    padding: 1rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background: var(--background);
    transform: translateX(4px);
}

/* Loading States */
.spinner-border {
    border-color: var(--accent);
    border-right-color: transparent;
}

/* Dropdown */
.dropdown-menu {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: var(--background);
    color: var(--accent);
}

.dropdown-divider {
    border-color: var(--border);
}

/* Utility Classes */
.text-muted {
    color: var(--text-secondary) !important;
}

.bg-light {
    background: var(--background) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: var(--spacing-sm);
    }

    .stat-card {
        margin-bottom: var(--spacing-sm);
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F9FAFB;
        --text-secondary: #D1D5DB;
        --border: #374151;
        --background: #1F2937;
        --surface: #111827;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal,
    .toast {
        display: none !important;
    }
}

/* Nederlandse Nummerplaat Styling */
.nl-license-plate {
    display: inline-block;
    background: linear-gradient(180deg, #FFC800 0%, #FFD700 100%);
    color: #000000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border: 2px solid #2C3E50;
    border-radius: 0.25rem;
    letter-spacing: 0.1em;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    position: relative;
    line-height: 1;
    vertical-align: middle;
}

/* Hover effect */
.nl-license-plate:hover {
    transform: scale(1.05);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

/* Oude Blauwe Nederlandse Nummerplaat (1951-1978) */
.nl-license-plate-blue {
    display: inline-block;
    background: linear-gradient(180deg, #1E3A8A 0%, #1E40AF 100%);
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border: 2px solid #1E293B;
    border-radius: 0.25rem;
    letter-spacing: 0.1em;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    line-height: 1;
    vertical-align: middle;
}

/* Hover effect voor blauwe plaat */
.nl-license-plate-blue:hover {
    transform: scale(1.05);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}
