@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
    --main-color: #e53f28;
    --text-color: #071344;
    --bg-color: #ffffff;
    --hover-color: hsl(7, 78%, 48%);
    --container-color: #6c7283;
    --border-color: #d4d9dd;
    --card-bg: #f6f6f6;
    --body-bg: #fbfcfd;
}



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

body, input, button, select, textarea {
    font-family: 'Outfit', sans-serif;
}

.bx, [class^="bx-"], [class*=" bx-"], [class^="bxs-"], [class*=" bxs-"], [class^="bxl-"], [class*=" bxl-"] {
    font-family: 'boxicons' !important;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    line-height: 1;
    display: inline-block;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
}

/* ===================================================
   Header
   =================================================== */
.profile-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--main-color);
}

.header-nav {
    display: flex;
    align-items: center;
    column-gap: 16px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s all;
}

.nav-link:hover {
    color: var(--main-color);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    background: #fde8e8;
    color: #c81e1e;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.btn-logout:hover {
    background: #f8b4b4;
}

/* ===================================================
   Main Content Layout
   =================================================== */
.profile-main {
    padding: 2.5rem 0 4rem;
}

.profile-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================================
   Profile Card
   =================================================== */
.profile-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 16px rgba(7, 19, 68, 0.04);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.user-avatar-box {
    font-size: 4rem;
    color: var(--main-color);
    line-height: 1;
}

.user-meta {
    flex: 1;
    min-width: 240px;
}

.user-meta h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.user-meta p {
    color: var(--container-color);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.member-tag {
    display: inline-flex;
    align-items: center;
    column-gap: 5px;
    font-size: 0.775rem;
    font-weight: 600;
    color: #047857;
    background: #def7ec;
    padding: 3px 8px;
    border-radius: 4px;
}

.user-quick-stats {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
}

.quick-stat {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    min-width: 90px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-number.pending-num {
    color: #b45309;
}

.stat-number.confirmed-num {
    color: #059669;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--container-color);
    text-transform: uppercase;
}

/* ===================================================
   Bookings Section
   =================================================== */
.section-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-top h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.section-top h2 span {
    color: var(--main-color);
}

.section-top p {
    color: var(--container-color);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Filter Tabs */
.booking-tabs {
    display: flex;
    background: #f0f1f3;
    padding: 4px;
    border-radius: 6px;
    gap: 4px;
}

.tab-btn {
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--container-color);
    cursor: pointer;
    transition: 0.2s all;
}

.tab-btn.active {
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.booking-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 12px rgba(7, 19, 68, 0.03);
    transition: 0.2s all;
}

.booking-card:hover {
    box-shadow: 0 6px 20px rgba(7, 19, 68, 0.06);
}

.booking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #f0f1f3;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-id-date {
    display: flex;
    align-items: center;
    column-gap: 12px;
}

.booking-code {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

.booking-time {
    font-size: 0.825rem;
    color: var(--container-color);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    column-gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-confirmed {
    background: #def7ec;
    color: #03543f;
    border: 1px solid #a7f3d0;
}

.badge-cancelled {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.badge-completed {
    background: #e1effe;
    color: #1e429f;
    border: 1px solid #b3c5ff;
}

/* Cancellation Reason Alert Box */
.cancellation-reason-box {
    background: #fff5f5;
    border-left: 4px solid #e53f28;
    padding: 12px 14px;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    column-gap: 10px;
    font-size: 0.875rem;
    color: #9b1c1c;
}

.cancellation-reason-box i {
    font-size: 1.3rem;
    margin-top: 1px;
    color: #e53f28;
}

.cancellation-reason-box strong {
    color: #771d1d;
    display: block;
    margin-bottom: 2px;
}

/* Card Body */
.booking-card-body {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.car-thumb-box {
    width: 140px;
    height: 100px;
    background: #f6f6f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.car-thumb-box img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.booking-info-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.schedule-item {
    font-size: 0.85rem;
}

.schedule-label {
    display: block;
    color: var(--container-color);
    font-size: 0.775rem;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2px;
}

.schedule-val {
    font-weight: 600;
    color: var(--text-color);
}

.schedule-sub {
    display: block;
    color: var(--container-color);
    font-size: 0.8rem;
}

.booking-pricing-box {
    text-align: right;
    min-width: 140px;
}

.price-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--main-color);
    display: block;
}

.price-sub {
    font-size: 0.8rem;
    color: var(--container-color);
    display: block;
    margin-top: 2px;
}

.btn-cancel-booking {
    margin-top: 10px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #f8b4b4;
    color: #c81e1e;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.btn-cancel-booking:hover {
    background: #fde8e8;
}

/* Empty State */
.empty-bookings-box {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-color);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.empty-bookings-box i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 0.8rem;
}

.empty-bookings-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.empty-bookings-box p {
    color: var(--container-color);
    margin-bottom: 1.5rem;
}

.btn-browse-cars {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    padding: 10px 20px;
    background: var(--main-color);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s all;
}

.btn-browse-cars:hover {
    background: var(--hover-color);
}

/* Toast */
.profile-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text-color);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(7, 19, 68, 0.25);
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
}

.profile-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.profile-toast i {
    font-size: 1.3rem;
    color: #31c48d;
}

.profile-toast.error i {
    color: #f98080;
}

/* ===================================================
   Admin Dropdown & Badges in Profile
   =================================================== */
.admin-verified-tag {
    background: #def7ec !important;
    color: #03543f !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 600;
}

.admin-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.admin-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    padding: 7px 14px;
    background: var(--container-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.admin-dropdown-toggle:hover {
    background: #0f2269;
}

.admin-dropdown-toggle .dd-arrow {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.admin-dropdown-toggle.active .dd-arrow {
    transform: rotate(180deg);
}

.admin-dropdown-box {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    animation: fadeInSlide 0.2s ease;
}

.admin-dropdown-box.show {
    display: flex;
}

.admin-dd-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.admin-dd-item {
    display: flex;
    align-items: center;
    column-gap: 12px;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

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

.admin-dd-item:hover {
    background: #f8fafc;
    color: var(--main-color);
}

.admin-dd-item i {
    font-size: 1.25rem;
    color: var(--main-color);
}

.admin-dd-item div {
    display: flex;
    flex-direction: column;
}

.admin-dd-item strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-dd-item small {
    font-size: 0.725rem;
    color: #64748b;
}

/* Admin Profile Card Dropdown */
.admin-profile-dropdown-container {
    position: relative;
    display: inline-block;
}

.btn-admin-profile-dropdown {
    display: inline-flex;
    align-items: center;
    column-gap: 6px;
    padding: 4px 10px;
    background: #fee2e2;
    color: var(--main-color);
    border: 1px solid #fca5a5;
    border-radius: 4px;
    font-size: 0.775rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s all;
}

.btn-admin-profile-dropdown:hover {
    background: #fecaca;
}

.admin-profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 260px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    z-index: 200;
    overflow: hidden;
    animation: fadeInSlide 0.2s ease;
}

.admin-profile-dropdown-menu.show {
    display: flex;
}

.admin-profile-dd-item {
    display: flex;
    align-items: center;
    column-gap: 12px;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.admin-profile-dd-item:last-child {
    border-bottom: none;
}

.admin-profile-dd-item:hover {
    background: #f8fafc;
    color: var(--main-color);
}

.admin-profile-dd-item i {
    font-size: 1.25rem;
    color: var(--main-color);
}

.admin-profile-dd-item div {
    display: flex;
    flex-direction: column;
}

.admin-profile-dd-item strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-profile-dd-item small {
    font-size: 0.725rem;
    color: #64748b;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 860px) {
    .booking-card-body {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .car-thumb-box {
        width: 100%;
        height: 140px;
    }
    .booking-pricing-box {
        text-align: left;
        border-top: 1px solid #f0f1f3;
        padding-top: 1rem;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    .user-quick-stats {
        width: 100%;
        justify-content: center;
    }
    .booking-tabs {
        width: 100%;
        overflow-x: auto;
    }
}

