:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --error-color: #e74c3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Login and Register Pages */
.login-page, .register-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container, .register-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box, .register-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Modern Dashboard Layout */
.modern-container {
    display: flex;
    width: 100%;
    padding: 4rem 2rem;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.calendar-section, 
.reservation-section {
    width: 50%;
}

/* Calendar Styles Update */
#calendar {
    border-radius: 12px;
}

.fc-theme-standard td, 
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border: none !important;
}

.fc .fc-daygrid-day {
    padding: 4px;
}

.fc .fc-daygrid-day-frame {
    border-radius: 8px;
    transition: background-color 0.2s;
}

.fc .fc-daygrid-day-frame:hover {
    background-color: #f8fafc;
}

.fc-toolbar-title {
    font-size: 1.25rem !important;
    color: var(--text-color) !important;
}

.fc-button-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Reservation List Styles */
.reservation-list {
    border-radius: 12px;
}

.reservation-list h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.reservation-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reservation-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fc-day:hover {
    background-color: #f3f4f6;
    cursor: pointer;
}

#reservation-list {
    max-height: 600px;
    overflow-y: auto;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8fafc;
}

/* Navigation Dropdown Styles */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
}

.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

.nav-links .dropdown-content a {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    margin: 0;
    transition: background-color 0.2s;
}

.nav-links .dropdown-content a:hover {
    background-color: #f8fafc;
}

/* Calendar Event Styles */
.fc-event {
    background-color: var(--primary-color) !important;
    border: none !important;
    padding: 2px 4px !important;
    border-radius: 4px !important;
}

.fc-event-title {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modern-container {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .calendar-section,
    .reservation-section {
        width: 100%;
    }

    .fc-toolbar-title {
        font-size: 1rem !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    overflow-y: auto;
}

/* Improve form elements in modal */
.modal select,
.modal input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background-color: white;
}

.modal .btn-primary,
.modal .btn-secondary {
    display: inline-block;
    width: auto;
    min-width: 120px;
    margin-top: 1rem;
}

.modal form {
    margin-top: 1.5rem;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 1rem;
}

/* Error Messages */
.error-message {
    background-color: #ffebee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Success Messages */
.success-message {
    background-color: #e3fcef;
    color: var(--secondary-color);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}
/* Add cars page */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    border-color: #4299e1;
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
}

.btn-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

.success-message, .error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.error-message {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-title {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* Manage Cars Page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.manage-cars h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.cars-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cars-table th,
.cars-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cars-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-available {
    background-color: #e3fcef;
    color: #2ecc71;
}

.status-reserved {
    background-color: #fff3cd;
    color: #ffa502;
}

.status-maintenance {
    background-color: #ffebee;
    color: #e74c3c;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.btn-edit {
    background-color: #f1c40f;
    color: white;
}

.btn-delete {
    background-color: var(--error-color);
    color: white;
}

.btn-edit:hover {
    background-color: #f39c12;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.add-car-form {
    max-width: 500px;
}

.new-client-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.new-client-form h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.client-result {
    background: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.client-result button {
    padding: 0.25rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin: 1rem 0;
}

#client_search {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

#selected_client_info {
    background: #e3fcef;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reservation-detail {
    padding: 1rem;
}

.reservation-detail h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.reservation-detail h3:first-child {
    margin-top: 0;
}

.reservation-detail p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.reservation-detail strong {
    color: var(--text-color);
    min-width: 120px;
    display: inline-block;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-confirmed {
    background-color: #e3fcef;
    color: #2ecc71;
}

.status-pending {
    background-color: #fff3cd;
    color: #ffa502;
}

.status-cancelled {
    background-color: #ffebee;
    color: #e74c3c;
}

.status-completed {
    background-color: #e8f0fe;
    color: #3498db;
}

.client-result {
    background: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.client-result:hover {
    background-color: #f8f9fa;
}

.client-info {
    flex-grow: 1;
}

.client-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.client-details {
    font-size: 0.875rem;
    color: #666;
}

.client-details span {
    margin-right: 1rem;
}

.btn-select {
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.btn-select:hover {
    background-color: #2980b9;
}

.no-results {
    text-align: center;
    padding: 1rem;
    color: #666;
    font-style: italic;
}

.error-message {
    background-color: #ffebee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    color: white;
    transition: background-color 0.2s;
}

.btn-edit {
    background-color: #f1c40f;
}

.btn-delete {
    background-color: #e74c3c;
}

.btn-edit:hover {
    background-color: #f39c12;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.detail-content form .form-group {
    margin-bottom: 1rem;
}

.detail-content form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.detail-content form input,
.detail-content form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Client History Styles */
.client-history {
    padding: 1rem;
}

.client-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.client-summary h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.client-summary p {
    margin: 0.5rem 0;
}

.rental-timeline {
    position: relative;
    padding-left: 2rem;
}

.rental-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid white;
}

.timeline-date {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.car-info {
    margin-bottom: 0.5rem;
}

.reservation-status {
    margin: 0.5rem 0;
}

.cost {
    color: var(--text-color);
    font-size: 0.9rem;
}

.no-history {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container,
    .register-container {
        padding: 1rem;
    }
    
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        margin-top: 1rem;
    }
    
    .nav-links a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .dashboard-container {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .availability-badge {
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
    }
    
    .availability-badge.available {
        background-color: #e3fcef;
        color: #2ecc71;
    }
    
    .availability-badge.unavailable {
        background-color: #ffebee;
        color: #e74c3c;
    }
    
    .form-group input[type="checkbox"] {
        width: auto;
        margin-left: 10px;
    }
    
    .form-group input[type="number"] {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    /* Contract Form Styles */
.contract-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.signature-container {
    margin: 1rem 0;
}

#signature-pad {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

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

.contracts-table th,
.contracts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.contracts-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.btn-view,
.btn-print {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.btn-view {
    background-color: var(--primary-color);
    color: white;
}

.btn-print {
    background-color: #6c757d;
    color: white;
}

.btn-view:hover {
    background-color: #2980b9;
}

.btn-print:hover {
    background-color: #5a6268;
}

.status-active {
    background-color: #e3fcef;
    color: #2ecc71;
}

.status-completed {
    background-color: #e8f0fe;
    color: #3498db;
}

.status-cancelled {
    background-color: #ffebee;
    color: #e74c3c;
}

/* Contract Details Page */
.contract-details {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.contract-section {
    margin-bottom: 2rem;
}

.contract-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.detail-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    width: 200px;
    color: var(--text-color);
}

.detail-value {
    flex: 1;
}

.signature-preview {
    max-width: 400px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

.contract-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* View Contracts Page Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.filter-form .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form .form-group {
    flex: 1;
    min-width: 200px;
}

.filter-form .form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.contracts-table th,
.contracts-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.contracts-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 500;
}

.client-email {
    font-size: 0.875rem;
    color: #6c757d;
}

.plate-number {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.text-danger {
    color: #dc3545;
}

.text-success {
    color: #28a745;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-view,
.btn-payment,
.btn-invoice {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

.btn-view {
    background-color: #17a2b8;
}

.btn-payment {
    background-color: #28a745;
}

.btn-invoice {
    background-color: #6c757d;
}

.btn-view:hover {
    background-color: #138496;
}

.btn-payment:hover {
    background-color: #218838;
}

.btn-invoice:hover {
    background-color: #5a6268;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #cce5ff;
    color: #004085;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .filter-form .form-row {
        flex-direction: column;
    }

    .filter-form .form-group {
        width: 100%;
    }

    .actions {
        flex-direction: column;
    }

    .btn-view,
    .btn-payment,
    .btn-invoice {
        text-align: center;
    }
}


/* Additional styles for new elements */
.rental-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.5em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.client-type {
    background-color: #e3f2fd;
    color: #1976d2;
}

.driver-info {
    font-size: 0.9rem;
}

.license-info {
    color: #666;
    font-size: 0.8rem;
}

.vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plate-number {
    font-size: 0.8rem;
    color: #666;
}

.cost-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.total-cost {
    font-weight: 600;
    color: #2e7d32;
}

.deposit-amount {
    font-size: 0.8rem;
    color: #666;
}

/* Payment System Styles */
.payment-container {
    max-width: 1000px;
    margin: 0 auto;
}

.payment-summary {
    background-color: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.summary-details {
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: bold;
}

.payment-form {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.payment-history {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
}

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

.payment-table th,
.payment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.payment-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Status badge colors */
.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Invoice Styles */
.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.invoice-details {
    margin-bottom: 2rem;
}

.invoice-table {
    width: 100%;
    margin-bottom: 2rem;
}

.invoice-total {
    text-align: right;
    font-weight: bold;
    font-size: 1.2rem;
}

.invoice-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Action buttons */
.btn-view, .btn-payment, .btn-invoice, .btn-download {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-payment {
    background-color: #28a745;
}

.btn-invoice {
    background-color: #6c757d;
}

.btn-download {
    background-color: #17a2b8;
}

.btn-payment:hover {
    background-color: #218838;
}

.btn-invoice:hover {
    background-color: #5a6268;
}

.btn-download:hover {
    background-color: #138496;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: white;
    transition: border-color 0.2s ease;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.1);
}

textarea:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

textarea::placeholder {
    color: #a0aec0;
}

/* Seasonal pricing related styles */
.price-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.85em;
}

.adjusted-price {
    font-weight: 600;
    color: #e74c3c;
}

/* Season badges for car listings */
.season-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.summer-season {
    background-color: #fff3cd;
    color: #856404;
}

.winter-season {
    background-color: #cce5ff;
    color: #004085;
}

/* Active seasonal pricing notification */
.seasonal-pricing-notice {
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summer-notice {
    background-color: #fff8e5;
    border: 1px solid #ffe8a1;
}

.winter-notice {
    background-color: #e5f3ff;
    border: 1px solid #b8daff;
}

.seasonal-pricing-notice span {
    font-weight: 600;
}

.pricing-dates {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Admin section navbar addition */
.nav-dropdown .dropdown-content a.seasonal-pricing-link:before {
    content: "🌡️";
    margin-right: 8px;
}

}