/* Vehicle Rental System - Minimal Design */

/* Font imports */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #fafafa;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Stagger delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Cards */
.card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: #f5e6c8;
    box-shadow: 0 8px 30px rgba(245, 220, 180, 0.15);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #f5dcb8 0%, #f0d4a3 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(245, 220, 184, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f0d4a3 0%, #e8c78a 100%);
    box-shadow: 0 4px 16px rgba(245, 220, 184, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: #fafafa;
    border-color: #d4d4d4;
}

.btn-danger {
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.btn-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.btn-success:hover {
    background: #f0fdf4;
    border-color: #86efac;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Form inputs */
.input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: #f5dcb8;
    box-shadow: 0 0 0 4px rgba(245, 220, 184, 0.15);
}

.input::placeholder {
    color: #a3a3a3;
}

.input-error {
    border-color: #fca5a5;
}

.input-error:focus {
    box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.15);
}

/* Labels */
.label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #525252;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

.badge-available {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-rented {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-maintenance {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-reserved {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.badge-pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.badge-confirmed {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.badge-completed {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.badge-cancelled {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-admin {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #737373;
    text-decoration: none;
    transition: color 0.2s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: #1a1a1a;
    background: #fafafa;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #f5dcb8;
    border-radius: 2px;
}

/* Tables */
.table-container {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
}

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

.table th {
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #737373;
    background: #fafafa;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table td {
    padding: 16px 20px;
    font-size: 14px;
    color: #1a1a1a;
    border-bottom: 1px solid #f5f5f5;
}

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

.table tr:hover td {
    background: #fafafa;
}

/* Stats cards */
.stat-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #f5e6c8;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: #737373;
    margin-top: 4px;
}

/* Vehicle card */
.vehicle-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vehicle-card:hover {
    border-color: #f5e6c8;
    box-shadow: 0 12px 40px rgba(245, 220, 184, 0.2);
    transform: translateY(-4px);
}

.vehicle-image {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #fafafa;
}

/* Hero section */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(245, 220, 184, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 220, 184, 0.15) 0%, transparent 40%);
    pointer-events: none;
}

/* Section headers */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 15px;
    color: #737373;
    margin-top: 8px;
}

/* Page headers */
.page-header {
    padding: 32px 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Flash messages */
.flash-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    animation: fadeIn 0.2s ease;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    z-index: 51;
    animation: fadeInUp 0.3s ease;
}

.modal-header {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: #d4d4d4;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: #737373;
}

/* Loading */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #f5dcb8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 10px 20px;
    }

    .stat-value {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .hero {
        padding: 48px 0;
    }
}

/* Print styles */
@media print {
    nav, footer, button, .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}