/* TDAP Vehicle Rental Booking System - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #1a1a1a;
    color: #fafafa;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: #fafafa;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.btn-link {
    background: none;
    border: none;
    color: #fafafa;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
}

.btn-link:hover {
    opacity: 0.8;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #1e40af;
    color: white;
}

.btn-primary:hover {
    background-color: #1e3a8a;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-success {
    background-color: #16a34a;
    color: white;
}

.btn-success:hover {
    background-color: #15803d;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.required {
    color: #dc2626;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table thead {
    background-color: #f1f5f9;
}

.table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #475569;
}

.table td {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

.table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-submitted {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-reviewed {
    background-color: #e0e7ff;
    color: #3730a3;
}

.status-admin_reviewed {
    background-color: #f3e8ff;
    color: #6b21a8;
}

.status-approved {
    background-color: #dcfce7;
    color: #166534;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Date Badges */
.date-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.date-badge .remove-date {
    margin-left: 0.5rem;
    cursor: pointer;
    color: #991b1b;
    background: none;
    border: none;
    font-weight: bold;
}

/* Cards */
.booking-card,
.applicant-card,
.vehicle-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.booking-card h3,
.applicant-card h3,
.vehicle-card h3 {
    margin-bottom: 1rem;
    color: #1e293b;
}

/* Booking Form */
.booking-form {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-row {
    margin-bottom: 1.5rem;
}

.vehicle-card {
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.date-picker-container {
    margin-top: 0.5rem;
}

.selected-dates {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vehicle-info {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.vehicle-cost {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #1e40af;
}

.total-cost {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 0.375rem;
    text-align: right;
    font-size: 1.25rem;
}

/* Quote Page */
.quote-page {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quote-info,
.applicant-info {
    margin-bottom: 2rem;
}

.quote-table {
    margin-bottom: 2rem;
}

.table tfoot {
    background-color: #f1f5f9;
}

.table tfoot td {
    font-weight: 600;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fafafa;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

/* Utilities */
.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .table {
        font-size: 0.875rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .booking-form,
    .quote-page {
        padding: 1rem;
    }
}
