/* ==============================
   GLOBAL STYLES
============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --gold-light: #f2d675;
    --black: #0b0b0b;
    --sidebar: #111111;
    --card: #171717;
    --border: #292929;
    --text: #ffffff;
    --muted: #999999;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--text);
}


/* ==============================
   SIDEBAR
============================== */

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 35px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 27px;
    letter-spacing: 2px;
}

.brand h2 span {
    color: var(--gold);
}

.brand p {
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
    margin-top: 8px;
}

.sidebar-nav {
    margin-top: 65px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    margin-bottom: 9px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 7px;
    transition: 0.3s;
    font-size: 14px;
}

.nav-link span {
    font-size: 18px;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
}

.logout-btn {
    width: 100%;
    padding: 13px;
    background: transparent;
    border: 1px solid var(--border);
    color: #ff7777;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.08);
}


/* ==============================
   MAIN CONTENT
============================== */

.main-content {
    margin-left: 250px;
    padding: 45px 55px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 55px;
}

.welcome-label {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.topbar h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 500;
}

.topbar h1 span {
    color: var(--gold);
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
}

.profile-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
}


/* ==============================
   SECTIONS
============================== */

.dashboard-section {
    margin-bottom: 55px;
    scroll-margin-top: 25px;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    font-weight: 500;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 8px;
}


/* ==============================
   STATISTICS CARDS
============================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 10px;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.stat-card p {
    color: var(--muted);
    font-size: 13px;
}

.stat-card h2 {
    color: var(--gold);
    font-size: 32px;
    margin: 17px 0 8px;
}

.stat-card span {
    color: #777;
    font-size: 11px;
}


/* ==============================
   BOOKINGS TABLE
============================== */

.table-container {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

thead {
    background: #202020;
}

th {
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    padding: 19px;
}

td {
    padding: 19px;
    font-size: 13px;
    border-top: 1px solid var(--border);
    color: #dddddd;
}

.empty-message {
    text-align: center;
    color: var(--muted);
    padding: 35px;
}


/* ==============================
   STATUS BADGES
============================== */

.status {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-pending {
    color: #ffc857;
    background: rgba(255, 200, 87, 0.12);
}

.status-approved {
    color: #70b7ff;
    background: rgba(112, 183, 255, 0.12);
}

.status-confirmed {
    color: #65d99a;
    background: rgba(101, 217, 154, 0.12);
}

.status-completed {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
}

.status-cancelled,
.status-rejected,
.status-expired {
    color: #ff7777;
    background: rgba(255, 119, 119, 0.12);
}


/* ==============================
   INFORMATION CARDS
============================== */

.info-card,
.profile-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 10px;
}

.info-card p {
    font-size: 14px;
    margin-bottom: 9px;
}

.info-card span {
    color: var(--muted);
    font-size: 12px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
    gap: 15px;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row span {
    color: var(--muted);
    font-size: 13px;
}

.profile-row strong {
    font-size: 13px;
    font-weight: 500;
}


/* ==============================
   FOOTER
============================== */

footer {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 11px;
}


/* ==============================
   RESPONSIVE DESIGN
============================== */

@media (max-width: 1100px) {

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 35px 30px;
    }

}

@media (max-width: 700px) {

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        margin-top: 25px;
        gap: 8px;
    }

    .nav-link {
        white-space: nowrap;
        margin-bottom: 0;
    }

    .sidebar-bottom {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 25px 18px;
    }

    .topbar {
        margin-bottom: 35px;
    }

    .topbar h1 {
        font-size: 25px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 10px;
    }

}

/* ======================================
   BOOKING DETAILS MODAL
====================================== */

.booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.booking-modal.active {
    display: flex;
}

.booking-modal-content {
    background: #151515;
    border: 1px solid #5a4920;
    border-radius: 14px;
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.modal-header p {
    color: #d4af37;
    font-size: 12px;
    letter-spacing: 3px;
}

.modal-header h2 {
    margin-top: 8px;
    font-family: 'Playfair Display', serif;
}

.close-modal {
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 32px;
    cursor: pointer;
}

.view-details-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.view-details-btn:hover {
    background: #d4af37;
    color: #111;
}

.booking-detail-reference {
    background: #211c10;
    border: 1px solid #5a4920;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #ccc;
    overflow-wrap: anywhere;
}

.booking-detail-reference strong {
    display: block;
    color: #d4af37;
    margin-top: 8px;
}

.detail-section {
    border-bottom: 1px solid #333;
    padding: 18px 0;
}

.detail-section h3 {
    color: #d4af37;
    margin-bottom: 15px;
    font-size: 16px;
}

.detail-section p {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    color: #aaa;
    font-size: 14px;
}

.detail-section strong {
    color: #fff;
    text-align: right;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .booking-modal-content {
        padding: 20px;
    }

    .detail-section p {
        flex-direction: column;
        gap: 5px;
    }

    .detail-section strong {
        text-align: left;
    }
}

.status-refund {
    background: rgba(100, 149, 237, 0.15);
    color: #6495ed;
    border: 1px solid #6495ed;
}

/* =========================================
   RESCHEDULE REQUEST FORM
========================================= */

.reschedule-form-card {
    background: #111;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 14px;
    padding: 28px;
    margin-top: 30px;
    margin-bottom: 35px;
}

.reschedule-form-card .section-heading {
    margin-bottom: 25px;
}

.reschedule-form-card .section-heading h2 {
    color: #d4af37;
    margin-bottom: 8px;
}

.reschedule-form-card .section-heading p {
    color: #aaa;
}

#rescheduleForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#rescheduleForm .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

#rescheduleForm label {
    color: #eee;
    font-size: 14px;
    font-weight: 600;
}

#rescheduleForm input,
#rescheduleForm select,
#rescheduleForm textarea {
    width: 100%;
    padding: 13px 15px;
    background: #1c1c1c;
    color: #fff;
    border: 1px solid #393939;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#rescheduleForm input:focus,
#rescheduleForm select:focus,
#rescheduleForm textarea:focus {
    border-color: #d4af37;
}

#rescheduleForm input::placeholder,
#rescheduleForm textarea::placeholder {
    color: #777;
}

#rescheduleForm textarea {
    resize: vertical;
    min-height: 110px;
}

#rescheduleForm select {
    cursor: pointer;
}

#rescheduleForm input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1);
}

#rescheduleForm .form-row {
    display: flex;
    gap: 20px;
}

#submitRescheduleBtn {
    align-self: flex-start;
    padding: 14px 25px;
    background: #d4af37;
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

#submitRescheduleBtn:hover {
    background: #f0cf65;
    transform: translateY(-2px);
}

#submitRescheduleBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#rescheduleMessage {
    font-size: 14px;
    margin: 0;
    min-height: 18px;
}

#rescheduleMessage.success {
    color: #4ade80;
}

#rescheduleMessage.error {
    color: #f87171;
}


/* =========================================
   RESCHEDULE FORM RESPONSIVE DESIGN
========================================= */

@media (max-width: 768px) {

    .reschedule-form-card {
        padding: 20px;
    }

    #rescheduleForm .form-row {
        flex-direction: column;
        gap: 20px;
    }

    #submitRescheduleBtn {
        width: 100%;
    }

}

/* ======================================
   BOOKING ACTION BUTTONS
====================================== */

.booking-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.view-details-btn,
.cancel-booking-btn {
    padding: 9px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.view-details-btn {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.view-details-btn:hover {
    background: #d4af37;
    color: #080808;
}

.cancel-booking-btn {
    background: rgba(220, 53, 69, 0.08);
    color: #ff6b75;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.cancel-booking-btn:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.view-details-btn:active,
.cancel-booking-btn:active {
    transform: scale(0.96);
}

@media (max-width: 768px) {
    .booking-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .view-details-btn,
    .cancel-booking-btn {
        width: 100%;
    }
}


/* ======================================
   PREMIUM CUSTOMER PROFILE
====================================== */

.profile-card {
    background: linear-gradient(145deg, #191919, #111111);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 14px;
    padding: 28px 34px;
    margin-top: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row span {
    color: #999;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.profile-row strong {
    color: #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.profile-row:hover strong {
    color: #d4af37;
    transition: color 0.2s ease;
}

@media (max-width: 600px) {
    .profile-card {
        padding: 18px 20px;
    }

    .profile-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 19px 0;
    }

    .profile-row strong {
        text-align: left;
    }
}

/* ======================================
   PREMIUM PROFILE DESIGN
====================================== */

.profile-container {
    margin-top: 30px;
}

/* Profile Header */

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 35px;
    background: linear-gradient(120deg, #1c1a14, #111111);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    margin-bottom: 28px;
}

.profile-avatar {
    width: 85px;
    height: 85px;
    min-width: 85px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0d36a, #bd941e);
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.profile-header-info {
    flex: 1;
}

.profile-header-info h2 {
    color: #fff;
    font-size: 25px;
    margin: 0 0 7px;
}

.profile-header-info p {
    color: #999;
    margin: 0 0 12px;
    font-size: 14px;
}

.account-badge {
    display: inline-block;
    color: #75d99a;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.25);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
}

/* Edit Button */

.edit-profile-btn {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37;
    padding: 12px 22px;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.edit-profile-btn:hover {
    background: #d4af37;
    color: #111;
}

/* Personal Information */

.profile-information {
    background: #151515;
    border: 1px solid #292929;
    border-radius: 16px;
    padding: 30px;
}

.profile-information h3 {
    color: #fff;
    font-size: 19px;
    margin: 0 0 25px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.profile-info-item {
    background: #1c1c1c;
    border: 1px solid #303030;
    border-radius: 10px;
    padding: 24px 20px;
    min-width: 0;
    transition: 0.25s ease;
}

.profile-info-item:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.profile-info-item span {
    display: block;
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.profile-info-item strong {
    display: block;
    color: #f5f5f5;
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* Responsive Design */

@media (max-width: 900px) {
    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-header {
        flex-wrap: wrap;
        padding: 22px;
        gap: 18px;
    }

    .profile-avatar {
        width: 65px;
        height: 65px;
        min-width: 65px;
        font-size: 27px;
    }

    .profile-header-info h2 {
        font-size: 20px;
    }

    .edit-profile-btn {
        width: 100%;
    }

    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-information {
        padding: 20px;
    }
}


/* ======================================
   EDIT PROFILE MODAL
====================================== */

.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.profile-modal-content {
    width: 100%;
    max-width: 480px;
    background: #171717;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: profileModalIn 0.25s ease;
}

@keyframes profileModalIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-heading h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 30px;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #d4af37;
}

.modal-description {
    color: #999;
    font-size: 14px;
    margin: 12px 0 25px;
}

#editProfileForm .form-group {
    margin-bottom: 20px;
}

#editProfileForm label {
    display: block;
    color: #d4af37;
    font-size: 13px;
    margin-bottom: 9px;
}

#editProfileForm input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    background: #222;
    border: 1px solid #383838;
    border-radius: 7px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

#editProfileForm input:focus {
    border-color: #d4af37;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.modal-cancel-btn,
.modal-save-btn {
    padding: 11px 20px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.modal-cancel-btn {
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
}

.modal-cancel-btn:hover {
    background: #292929;
    color: #fff;
}

.modal-save-btn {
    background: #d4af37;
    color: #111;
    border: 1px solid #d4af37;
}

.modal-save-btn:hover {
    background: #e8c653;
}

.modal-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#editProfileMessage {
    font-size: 13px;
    margin-top: 12px;
}

@media (max-width: 500px) {
    .profile-modal-content {
        padding: 22px;
    }

    .modal-actions button {
        flex: 1;
    }
}

/* NOTIFICATION SYSTEM */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.notification-wrapper {
    position: relative;
}

.notification-bell {
    position: relative;
    background: #171717;
    border: 1px solid #c9a44c;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 19px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d4af37;
    color: #000;
    border-radius: 50%;
    min-width: 19px;
    height: 19px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-badge[hidden] {
    display: none;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 58px;
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: #151515;
    border: 1px solid #c9a44c;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.notification-dropdown.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #333;
}

.notification-header h3 {
    color: #d4af37;
    font-size: 16px;
}

.notification-header button {
    background: none;
    border: none;
    color: #d4af37;
    cursor: pointer;
    font-size: 12px;
}

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #292929;
    cursor: pointer;
}

.notification-item:hover {
    background: #222;
}

.notification-item.unread {
    border-left: 3px solid #d4af37;
    background: #1e1b13;
}

.notification-item h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}

.notification-item p {
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

.notification-item small {
    display: block;
    color: #777;
    margin-top: 8px;
    font-size: 11px;
}

.notification-empty {
    padding: 25px;
    text-align: center;
    color: #999;
}

@media (max-width: 500px) {
    .notification-dropdown {
        position: fixed;
        top: 85px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* BOOK NOW BUTTON */

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;

    background: #d4af37;
    color: #111;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    border-radius: 7px;
    border: none;

    transition: all 0.3s ease;
}

.book-now-btn:hover {
    background: #f0cc55;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 600px) {

    .topbar-actions {
        gap: 10px;
    }

    .book-now-btn {
        padding: 9px 14px;
        font-size: 12px;
    }

}