/* Custom properties */
:root {
    --brand-color: #124097;
    --brand-gradient: linear-gradient(135deg, #2e74c7 0%, #0f4c96 100%);
    --bg-lightest: #f1f5f9;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

.account-page {
    background-color: var(--bg-lightest);
    min-height: 100vh;
}

.text-brand {
    color: var(--brand-color) !important;
}

.bg-brand-gradient {
    background: var(--brand-gradient) !important;
}

/* Mobile Header & Nav */
.mobile-nav-wrapper {
    background-color: white;
    position: sticky;
    top: 50px;
    /* offset for main navbar if needed */
    z-index: 1020;
}

.mobile-nav-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 1rem 0.75rem 1rem;
    gap: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--borderRadius-default);
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    background-color: white;
    color: var(--text-muted);
    text-decoration: none;
}

.mobile-nav-btn:hover {
    border-color: #cbd5e1;
    color: var(--text-dark);
    text-decoration: none;
}

.mobile-nav-btn.active {
    background: var(--brand-gradient) !important;
    color: white !important;
    border-color: transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Desktop Sidebar */
.desktop-sidebar {
    background-color: white;
    border-radius: var(--borderRadius-default);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 6rem;
}

.sidebar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    /* border-left: 4px solid transparent; */
    color: var(--text-high);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.sidebar-btn:hover {
    background-color: #f8fafc;
    color: #334155;
    text-decoration: none;
}

.sidebar-btn.active {
    color: #ffffff;
    background: var(--bg-gradient);
}

.sidebar-btn i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
    color: #94a3b8;
}

.sidebar-btn.active i {
    color: #ffffff;
}

.sidebar-btn .chevron {
    opacity: 0;
    margin-right: 0 !important;
    font-size: 0.75rem;
}

.sidebar-btn.active .chevron {
    opacity: 1;
}

/* Content Area */
.modern-card {
    background-color: white;
    border-radius: var(--borderRadius-default);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.modern-card-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    /* pull out to edges */
}

/* Table Override */
.modern-table-wrapper .table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
}

.modern-table-wrapper .table thead th {
    padding: 1.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    border-top: none;
}

.modern-table-wrapper .table tbody td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.modern-table-wrapper .table tbody tr:hover td {
    background-color: #f8fafc;
}

/* Booking list ticket icon */
.ticket-icon {
    background: #ffffff;
    color: #94a3b8;
}

#booking_table tbody tr.booking-expanded .ticket-icon {
    background: #124090;
    color: #ffffff;
}

/* DataTables overrides for cleaner look */
div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    outline: none;
    font-size: 16px;
    transform: scale(0.95);
}

/* Remove browser clear (x) button for search inputs */
/* div.dataTables_wrapper div.dataTables_filter input[type="search"] {
    -webkit-appearance: textfield;
}

div.dataTables_wrapper div.dataTables_filter input[type="search"]::-webkit-search-cancel-button,
div.dataTables_wrapper div.dataTables_filter input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
} */

div.dataTables_wrapper div.dataTables_filter input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 0.2rem rgba(18, 64, 151, 0.25);
}

/* Button overrides */
.btn-brand {
    background: var(--brand-gradient) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: var(--borderRadius-default) !important;
    padding: 0.6rem 1.25rem !important;
    box-shadow: 0 4px 6px -1px rgba(18, 64, 151, 0.2), 0 2px 4px -1px rgba(18, 64, 151, 0.1) !important;
    transition: transform 0.1s, box-shadow 0.2s !important;
}

.btn.btn-brand {
    background: var(--brand-gradient) !important;
    color: white !important;
}

.btn-brand-cancel {
    background: #d80000 !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: var(--borderRadius-default) !important;
    padding: 0.6rem 1.25rem !important;
    box-shadow: 0 4px 6px -1px rgba(18, 64, 151, 0.2), 0 2px 4px -1px rgba(18, 64, 151, 0.1) !important;
    transition: transform 0.1s, box-shadow 0.2s !important;
}

.btn.btn-brand-cancel {
    background: #808080 !important;
    color: white !important;
}

/* Custom DataTable Pagination & Length Adjustments */
.modern-card .dataTables_wrapper {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.modern-card .dataTables_length,
.modern-card .dataTables_filter {
    padding: 0 1rem 1rem 1rem;
}

/* Swap length + filter sides */
.modern-card .dataTables_length {
    float: right;
    text-align: right;
}

.modern-card .dataTables_filter {
    float: left;
    text-align: left;
}

.modern-card .dataTables_info,
.modern-card .dataTables_paginate {
    padding: 1rem 1rem 0 1rem;
    font-size: 0.875rem;
}

.modern-card .dataTables_paginate .paginate_button {
    border-radius: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    margin-left: 0.25rem;
    background: white !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: #475569 !important;
}

.modern-card .dataTables_paginate .paginate_button.current,
.modern-card .dataTables_paginate .paginate_button.current:hover {
    background: #124097 !important;
    color: white !important;
    border-color: #124097 !important;
}

.modern-card .dataTables_paginate .paginate_button:hover {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

.btn-brand:hover {
    color: white;
    box-shadow: 0 6px 8px -1px rgba(18, 64, 151, 0.3);
}

.btn-brand:active {
    transform: scale(0.97);
}

.btn-brand-cancel:hover {
    color: white;
    box-shadow: 0 6px 8px -1px rgba(18, 64, 151, 0.3);
}

.btn-brand-cancel:active {
    transform: scale(0.97);
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--borderRadius-default);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-export:hover {
    background-color: #f8fafc;
    text-decoration: none;
    color: var(--text-dark);
}

/* Utilities */
.rounded-3xl {
    border-radius: 1.5rem !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Keep existing overrides */
.daterangepicker .ranges li.active {
    background-color: var(--brand-color) !important;
    color: white !important;
}

table#booking_table td:nth-child(6),
table#booking_table td:nth-child(5) {
    word-wrap: break-word;
    white-space: normal;
    max-width: 100px !important;
}

tbody tr td span {
    color: rgb(255, 255, 255) !important;
}

#booking_table tbody tr td span {
    color: black !important;
}

#booking_table tbody tr td:nth-child(8) span {
    color: rgb(255, 255, 255) !important;
}

#booking_table tbody tr td:nth-child(7) a {
    color: blue !important;
}

#booking_table tbody tr td:nth-child(7) a:hover {
    border-bottom: 1px solid blue !important;
}

/* Sync Tabs override */
.tab-pane {
    outline: none;
}