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

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6fb;
    color: #2e2e2e;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.page-wrapper {
    padding-top: 100px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-page {
    margin-top: 80px;
    margin-bottom: 60px;
}

.admin-page .form-container {
    margin-left: auto;
    margin-right: auto;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f3c88;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    font-weight: 500;
    color: #344767;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #1f3c88;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(31, 60, 136, 0.2);
}

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

.btn-primary {
    background: linear-gradient(135deg, #1f3c88, #4c74ff);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(31, 60, 136, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2547a0, #5d85ff);
    box-shadow: 0 8px 20px rgba(31, 60, 136, 0.35);
}

.btn-secondary {
    background: #e8ecf4;
    color: #344767;
    border: 1px solid rgba(31, 60, 136, 0.12);
}

.btn-secondary:hover {
    background: #d8dfe9;
    border-color: rgba(31, 60, 136, 0.2);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: #0b1f4d;
}

.hero-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    color: #50658e;
}

.booking-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(15, 28, 75, 0.15);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.booking-form .form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #203a67;
}

.booking-form .form-group input,
.booking-form .form-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d5d9e4;
    background: #ffffff;
    font-size: 1rem;
    color: #1f2a44;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-form .form-group input:focus,
.booking-form .form-group select:focus,
.form-container input:focus,
.form-container textarea:focus {
    outline: none;
    border-color: #4c74ff;
    box-shadow: 0 0 0 4px rgba(76, 116, 255, 0.15);
}

.hero-illustration {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 340px;
    box-shadow: 0 20px 45px rgba(15, 28, 75, 0.25);
}

.hero-illustration::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 28, 75, 0.7), rgba(76, 116, 255, 0.55));
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 60px;
    color: #0b1f4d;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #50658e;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(31, 60, 136, 0.06);
    border: 1px solid rgba(79, 113, 231, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(31, 60, 136, 0.14);
    border-color: rgba(31, 60, 136, 0.15);
}

.feature-card h3 {
    margin-bottom: 12px;
    color: #1f3c88;
}

.feature-card p {
    color: #50658e;
    font-size: 0.95rem;
}

.form-container {
    width: min(720px, 90%);
    margin: 120px auto 60px;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 25px 45px rgba(15, 28, 75, 0.15);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #0b1f4d;
}

.form-container p {
    text-align: center;
    margin-bottom: 25px;
    color: #50658e;
}

.input-group {
    margin-bottom: 18px;
}

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

.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #203a67;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d5d9e4;
    background: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #1f3c88;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
    background: #f8f9ff;
}

.input-group input:hover,
.input-group textarea:hover,
.input-group select:hover {
    border-color: #a8b3c5;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.errors,
.success {
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 20px;
}

.errors {
    background: #ffe3e6;
    color: #a1263a;
    border: 1px solid #f5b6bf;
}

.success {
    background: #e0f5ea;
    color: #1a7f46;
    border: 1px solid #a6dfbe;
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.95rem;
}

.form-footer a {
    color: #1f3c88;
    font-weight: 600;
}

.main-footer {
    background: #0b1f4d;
    color: #ffffff;
    padding: 35px 0 25px;
    text-align: center;
    margin-top: auto;
}

.main-footer .admin-shortcut {
    margin-top: 10px;
    font-size: 0.95rem;
}

.main-footer .admin-shortcut a {
    color: #9ec5fe;
    text-decoration: none;
}

.main-footer .admin-shortcut a:hover,
.main-footer .admin-shortcut a:focus {
    text-decoration: underline;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.car-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 28, 75, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(15, 28, 75, 0.18);
}

.car-card.car-unavailable {
    opacity: 0.75;
}

.car-card.car-unavailable img {
    filter: grayscale(40%);
}

.car-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.car-status-badge .badge {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 8px 16px;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.car-card h3 {
    color: #0b1f4d;
}

.car-card .car-year {
    color: #64749b;
    font-size: 0.95rem;
}

.car-card .car-price {
    font-weight: 700;
    color: #1f3c88;
    font-size: 1.2rem;
}

.car-card .btn {
    margin-top: auto;
    width: 100%;
    display: block;
}

.info-message {
    margin: 40px auto;
    text-align: center;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    width: min(640px, 90%);
    box-shadow: 0 20px 45px rgba(15, 28, 75, 0.12);
}

.table-responsive {
    overflow-x: auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 28, 75, 0.08);
    border: 1px solid rgba(15, 28, 75, 0.06);
}

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

thead {
    background: #1f3c88;
    color: #ffffff;
}

thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

tbody td {
    padding: 16px;
    border-bottom: 1px solid #edf0f7;
    color: #344767;
    transition: background-color 0.2s ease;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(90deg, #f8f9ff, #ffffff);
    transform: scale(1.002);
}

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

.action-buttons {
    display: flex;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: #059669;
    color: #ffffff;
}

.badge-warning {
    background: #d97706;
    color: #ffffff;
}

.badge-danger {
    background: #dc2626;
    color: #ffffff;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 28, 75, 0.08);
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 12px 32px rgba(15, 28, 75, 0.12);
}

.muted {
    color: #5f6b7f;
    font-size: 0.9rem;
}

.info-message {
    background: linear-gradient(135deg, rgba(31, 60, 136, 0.05), rgba(31, 60, 136, 0.02));
    border: 1px dashed rgba(31, 60, 136, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #5f6b7f;
}

.info-message p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .report-grid {
        grid-template-columns: 1fr;
    }
}

.report-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(15, 28, 75, 0.08);
    box-shadow: 0 4px 12px rgba(15, 28, 75, 0.06);
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 28, 75, 0.15);
    border-color: rgba(31, 60, 136, 0.2);
}

.report-card header h3 {
    margin-bottom: 8px;
    color: #0b1f4d;
    font-size: 1.2rem;
    word-break: break-word;
}

.report-card header .muted {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    background: rgba(31, 60, 136, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    word-break: break-all;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.report-stats dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: #5f6b7f;
    letter-spacing: 0.3px;
}

.report-stats dd {
    margin: 4px 0 0;
    font-weight: 600;
    color: #0b1f4d;
    font-size: 1.15rem;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
}

.report-history {
    border-top: 1px solid rgba(15, 28, 75, 0.08);
    padding-top: 18px;
    margin-top: 6px;
}

.report-history h4 {
    margin-bottom: 12px;
    color: #0b1f4d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.report-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 28, 75, 0.04);
}

.report-history li:last-child {
    border-bottom: none;
}

.report-history li span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-history li .badge {
    margin-left: auto;
    margin-right: 8px;
}

.report-history li small {
    color: #5f6b7f;
}

.dashboard-card h3 {
    margin-bottom: 15px;
    color: #0b1f4d;
}

@media (max-width: 900px) {
    .main-header .container {
        flex-direction: column;
        gap: 14px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
    }

    .hero-illustration {
        order: -1;
        min-height: 260px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 31, 77, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    width: min(480px, 90%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid #edf0f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    color: #0b1f4d;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #5f6b7f;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f4f6fb;
    color: #0b1f4d;
}

.modal-body {
    padding: 28px;
}

/* Reservation Preview Styles */
.reservation-preview {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 28, 75, 0.08);
    overflow: hidden;
}

.reservation-car-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid #edf0f7;
}

.reservation-car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.reservation-car-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reservation-details-section,
.reservation-price-section {
    padding: 30px;
    border-bottom: 1px solid #edf0f7;
}

.reservation-price-section {
    border-bottom: none;
    background: #f8faff;
}

.reservation-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.reservation-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.reservation-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reservation-detail-label {
    font-size: 0.8rem;
    color: #5f6b7f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.reservation-detail-value {
    font-size: 1.05rem;
    color: #0b1f4d;
    font-weight: 600;
}

.price-breakdown {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #edf0f7;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #5f6b7f;
    font-size: 0.95rem;
}

.price-row:not(:last-child) {
    border-bottom: 1px solid #edf0f7;
}

.price-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0b1f4d;
    padding-top: 18px;
    margin-top: 8px;
}

.price-total span:last-child {
    color: #1f3c88;
}

/* Admin Dashboard Stats Cards */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.stat-card {
    border-radius: 12px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-card-blue {
    background: linear-gradient(135deg, #1f3c88, #4c74ff);
}

.stat-card-green {
    background: linear-gradient(135deg, #059669, #10b981);
}

.stat-card-orange {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.stat-card-purple {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.stat-card-label {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Management Tools Cards */
.management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.management-card {
    display: block;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 5px solid;
}

.management-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.management-card-blue {
    border-left-color: #1f3c88;
}

.management-card-green {
    border-left-color: #059669;
}

.management-card-purple {
    border-left-color: #7c3aed;
}

.management-card-orange {
    border-left-color: #d97706;
}

.management-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.management-card h4 {
    color: #0b1f4d;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.management-card p {
    margin: 0;
    color: #5f6b7f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.count-badge {
    background: #fef3c7;
    color: #92400e;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 10px;
}

.count-badge-neutral {
    background: #f3f4f6;
    color: #374151;
}

/* Car Detail Page Styles */
.car-detail-section {
    padding-top: 70px;
    padding-bottom: 30px;
    background: linear-gradient(to bottom, #f8faff 0%, #ffffff 50%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #1f3c88;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.back-link:hover {
    color: #4c74ff;
}

.car-detail-gallery {
    max-width: 1200px;
    margin: 0 auto 20px;
}

.car-detail-main-image {
    position: relative;
    margin-bottom: 15px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31, 60, 136, 0.12);
}

.car-detail-main-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.car-detail-photo-count {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.car-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.car-detail-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.car-detail-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.car-detail-thumbnail img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.car-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
}

.car-detail-price-card {
    background: linear-gradient(135deg, #1f3c88 0%, #4c74ff 100%);
    padding: 30px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    position: sticky;
    top: 120px;
}

.car-detail-price-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.car-info-section {
    margin-bottom: 25px;
}

.car-info-header {
    margin-bottom: 25px;
}

.car-info-title {
    color: #0b1f4d;
    font-size: 2.5rem;
    margin: 0 0 12px 0;
    font-weight: 800;
    line-height: 1.2;
}

.car-info-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.car-year-badge {
    background: #f0f2f5;
    color: #5f6b7f;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.car-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-rating {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-value {
    color: #0b1f4d;
    font-weight: 700;
    font-size: 1.1rem;
}

.rating-count {
    color: #5f6b7f;
    font-size: 1rem;
}

.car-description {
    background: #f8faff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    border-left: 4px solid #1f3c88;
}

.car-description h3 {
    color: #0b1f4d;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.car-description p {
    color: #5f6b7f;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.car-specs {
    background: white;
    border: 1px solid #edf0f7;
        padding: 22px;
    border-radius: 14px;
}

.car-specs h3 {
    color: #0b1f4d;
    font-size: 1.1rem;
    margin: 0 0 18px 0;
    font-weight: 700;
}

.specs-list {
    display: grid;
    gap: 14px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f2f5;
}

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

.spec-label {
    color: #5f6b7f;
    font-size: 0.95rem;
}

.spec-value {
    color: #0b1f4d;
    font-weight: 700;
    font-size: 0.95rem;
}

.spec-value-code {
    font-family: monospace;
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot-green {
    background: #059669;
}

.status-dot-red {
    background: #dc2626;
}

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

.price-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.price-amount {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.price-description {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Review/Star Rating */
.star-input-group {
    margin-bottom: 20px;
}

.star-input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #0b1f4d;
    font-size: 1.05rem;
}

.star-inputs {
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: flex-end;
    width: fit-content;
}

.star-inputs input[type="radio"] {
    display: none;
}

.star-inputs label {
    font-size: 2.5rem;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.star-inputs label:hover,
.star-inputs label:hover ~ label,
.star-inputs input[type="radio"]:checked ~ label {
    color: #f59e0b;
    transform: scale(1.1);
}

/* Change Request Cards */
.request-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 25px;
}

.request-card-header {
    background: linear-gradient(135deg, #1f3c88, #4c74ff);
    color: white;
    padding: 25px;
}

.request-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
}

.request-card-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.request-card-body {
    padding: 25px;
}

.request-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.request-info-item h4 {
    color: #5f6b7f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.request-info-item p {
    color: #0b1f4d;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.request-dates-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8faff;
    border-radius: 12px;
}

.date-column h4 {
    color: #0b1f4d;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.date-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #edf0f7;
}

.date-info div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.date-info div:not(:last-child) {
    border-bottom: 1px solid #f0f2f5;
}

.date-arrow {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #d97706;
}

.request-reason {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
        padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.request-reason h4 {
    color: #92400e;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.request-reason p {
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    min-width: 100%;
    scroll-snap-align: start;
    border-radius: 12px;
    object-fit: cover;
    height: 300px;
}

.gallery-indicator {
    text-align: center;
    margin-top: 10px;
    color: #5f6b7f;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* Car Detail Page */
    .car-detail-main-image img {
        height: 280px;
    }
    
    .car-detail-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .car-detail-thumbnail img {
        height: 60px;
    }
    
    .car-detail-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .car-detail-price-card {
        position: static;
        order: -1;
    }
    
    .car-info-title {
        font-size: 2rem;
    }
    
    .star-rating {
        font-size: 1.1rem;
    }
    
    /* Dashboard Stats */
    .dashboard-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card-value {
        font-size: 2rem;
    }
    
    /* Management Cards */
    .management-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .management-card {
        padding: 24px;
    }
    
    /* Request Cards */
    .request-dates-comparison {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .date-arrow {
        display: none;
    }
    
    .request-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* General Tables */
    .table-responsive {
        font-size: 0.85rem;
    }
    
    thead th {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    tbody td {
        padding: 12px 8px;
    }
    
    /* Hero Section */
    .hero {
        gap: 30px;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    /* Feature Grid */
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /* Car Grid */
    .car-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }
    
    /* Form Grid */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    /* Dashboard Cards */
    .dashboard-card {
        padding: 20px;
    }
    
    /* Report Grid */
    .report-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .report-card {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    /* Global Mobile Styles */
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .main-header .container {
        padding: 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .main-nav ul {
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 9px 16px;
        font-size: 0.85rem;
    }
    
    /* Page Wrapper */
    .page-wrapper {
        padding-top: 140px;
    }
    
    /* Hero Section */
    .hero {
        gap: 25px;
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-illustration {
        min-height: 240px;
    }
    
    /* Booking Form */
    .booking-form {
        padding: 20px;
        gap: 15px;
    }
    
    .booking-form .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .booking-form .form-group input,
    .booking-form .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    
    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 40px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    /* Car Grid */
    .car-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .car-card img {
        height: 180px;
    }
    
    .car-card-content {
        padding: 16px;
    }
    
    .car-card h3 {
        font-size: 1.15rem;
    }
    
    .car-card .car-price {
        font-size: 1.1rem;
    }
    
    /* Form Container */
    .form-container {
        margin: 100px auto 40px;
        padding: 20px;
        width: 95%;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .form-container p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Admin Page */
    .admin-page {
        margin-top: 60px;
        margin-bottom: 40px;
    }
    
    /* Tables - Convert to Cards on Mobile */
    .table-responsive {
        border-radius: 10px;
        overflow: visible;
        box-shadow: none;
        border: none;
        background: transparent;
    }
    
    table {
        border: 0;
    }
    
    table thead {
        display: none; /* Hide headers on mobile */
    }
    
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(15, 28, 75, 0.08);
        border: 1px solid rgba(15, 28, 75, 0.06);
        padding: 15px;
    }
    
    table tbody td {
        display: block;
        text-align: left;
        padding: 8px 0;
        border: none;
        position: relative;
        padding-left: 0;
    }
    
    table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: #1f3c88;
        font-size: 0.75rem;
        text-transform: uppercase;
    }
    
    table tbody td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }
    
    /* Table Cell Helpers */
    .table-car-name {
        display: block;
        margin-bottom: 4px;
        font-weight: 600;
    }
    
    .table-car-title {
        display: block;
        margin-bottom: 4px;
        color: #1f3c88;
        font-weight: 600;
    }
    
    .table-subtitle {
        color: #5f6b7f;
        font-size: 0.8rem;
    }
    
    .table-subtitle-small {
        display: block;
        color: #5f6b7f;
        font-size: 0.75rem;
    }
    
    .table-subtitle-block {
        display: block;
        color: #5f6b7f;
        font-size: 0.85rem;
    }
    
    .table-period-wrapper {
        font-size: 0.9rem;
    }
    
    .table-period-item {
        margin-bottom: 3px;
    }
    
    .table-period-highlight {
        font-size: 0.9rem;
        color: #1f3c88;
        font-weight: 600;
    }
    
    .table-period-separator {
        color: #5f6b7f;
        font-weight: normal;
    }
    
    .table-price {
        color: #1f3c88;
        font-size: 1.05rem;
        font-weight: 600;
    }
    
    .table-request-info {
        margin-top: 8px;
    }
    
    .table-request-label {
        display: block;
        color: #5f6b7f;
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .table-timestamp {
        font-size: 0.85rem;
        color: #5f6b7f;
    }
    
    .badge-small {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    .table-action-wrapper {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .table-action-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .table-select {
        width: 100%;
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .table-btn-update {
        width: 100%;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .table-btn-view {
        font-size: 0.85rem;
        padding: 8px 16px;
        white-space: nowrap;
    }
    
    .table-btn-action {
        font-size: 0.85rem;
        padding: 8px 14px;
        white-space: nowrap;
    }
    
    .table-status-reviewed {
        color: #059669;
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .action-buttons .btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Badges */
    .badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Dashboard Cards */
    .dashboard-card {
        padding: 18px;
        margin-bottom: 20px;
    }
    
    .dashboard-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    /* Report Grid */
    .report-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .report-card {
        padding: 18px;
    }
    
    .report-card header h3 {
        font-size: 1.05rem;
    }
    
    .report-stats {
        gap: 12px;
    }
    
    .report-stats dt {
        font-size: 0.7rem;
    }
    
    .report-stats dd {
        font-size: 1.05rem;
    }
    
    /* Modals */
    .modal-content {
        width: 95%;
        border-radius: 14px;
    }
    
    .modal-header {
        padding: 18px;
    }
    
    .modal-header h3 {
        font-size: 1.15rem;
    }
    
    .modal-body {
        padding: 18px;
    }
    
    /* Reservation Pages */
    .reservation-car-section {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px;
    }
    
    .reservation-car-image {
        height: 160px;
    }
    
    .reservation-details-section,
    .reservation-price-section {
        padding: 18px;
    }
    
    .reservation-detail-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .reservation-detail-item {
        gap: 12px;
    }
    
    .reservation-detail-icon {
        width: 38px;
        height: 38px;
    }
    
    .reservation-detail-label {
        font-size: 0.75rem;
    }
    
    .reservation-detail-value {
        font-size: 0.95rem;
    }
    
    .price-breakdown {
        padding: 16px;
    }
    
    .price-row {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    
    .price-total {
        font-size: 1.15rem;
        padding-top: 14px;
    }
    
    /* Dashboard Stats */
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-card-value {
        font-size: 2rem;
    }
    
    /* Management Cards */
    .management-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .management-card {
        padding: 20px;
    }
    
    .management-card h4 {
        font-size: 1.1rem;
    }
    
    /* Car Detail Page */
    .car-detail-section {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    
    .car-detail-main-image img {
        height: 220px;
    }
    
    .car-detail-photo-count {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .car-detail-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .car-detail-thumbnail img {
        height: 50px;
    }
    
    .car-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .car-detail-price-card {
        position: static;
        order: -1;
        padding: 24px;
    }
    
    .car-info-title {
        font-size: 1.8rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    /* Request Cards */
    .request-card-header {
        padding: 20px;
    }
    
    .request-card-body {
        padding: 20px;
    }
    
    .request-dates-comparison {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .date-column h4 {
        font-size: 0.8rem;
    }
    
    .date-info {
        padding: 12px;
    }
    
    .request-reason {
        padding: 12px 16px;
    }
    
    /* Star Rating */
    .star-inputs label {
        font-size: 2rem;
    }
    
    /* Gallery */
    .gallery-image {
        height: 220px;
    }
    
    /* Footer */
    .main-footer {
        padding: 28px 0 20px;
        font-size: 0.9rem;
    }
    
    .main-footer .admin-shortcut {
        font-size: 0.85rem;
    }
    
    /* Info Message */
    .info-message {
        padding: 24px;
        width: 95%;
    }
    
    .info-message p {
        font-size: 0.9rem;
    }
}
