/* ================================
   BOOKINGS PAGE STYLES
   ================================ */

.bookings-page {
    background: var(--slate-50);
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* Hero Small */
.hero-small {
    height: 50vh;
    min-height: 300px;
}

.hero-small .hero-stats {
    display: none;
}

/* Bookings Container */
.bookings-container {
    max-width: 1280px;
    margin: -2rem auto 0;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .bookings-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .bookings-container {
        padding: 6rem 2rem;
    }
}

/* Bookings Layout */
.bookings-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .bookings-layout {
        grid-template-columns: 300px 1fr;
    }
}

/* Sidebar */
.bookings-sidebar {
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .bookings-sidebar {
        position: sticky;
        top: 8rem;
        align-self: flex-start;
    }
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--slate-50);
    background: rgba(248, 250, 252, 0.5);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
}

.sidebar-menu {
    padding: 0.5rem;
}

.sidebar-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    gap: 1rem;
}

.sidebar-item svg {
    flex-shrink: 0;
}

.sidebar-item span:first-of-type {
    flex: 1;
    text-align: left;
}

.sidebar-item:hover {
    background: var(--slate-50);
}

.sidebar-item.active {
    background: var(--dsn-dark);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
}

.sidebar-item.section-header {
    background: var(--slate-50);
    color: var(--dsn-dark);
    cursor: pointer;
}

.sidebar-item.section-header.active {
    background: var(--slate-50);
    color: var(--dsn-dark);
    box-shadow: none;
}


.sidebar-subitem {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    padding-left: 3.5rem;
    /* Adjusted for better indent */
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    border: 1px solid transparent;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    text-align: left;
}

.sidebar-subitem:hover {
    color: var(--dsn-dark);
    background: var(--slate-50);
}

.sidebar-subitem.active {
    background: rgba(49, 125, 190, 0.1);
    color: var(--dsn-blue);
    border-color: rgba(49, 125, 190, 0.2);
    box-shadow: none;
}

.sidebar-subitem .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    margin-right: 0.75rem;
}

.sidebar-subitem .status-dot-yellow {
    background: var(--dsn-yellow);
}

.sidebar-subitem .status-dot-pink {
    background: var(--dsn-pink);
}

.sidebar-subitem .status-dot-green {
    background: var(--dsn-green);
}

/* Sidebar Toggle & Submenu */
.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.sidebar-submenu.expanded {
    max-height: 500px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.chevron {
    transition: transform 0.3s ease;
}

.sidebar-item.expanded .chevron {
    transform: rotate(180deg);
}


.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.badge-yellow {
    background: rgba(205, 220, 57, 0.1);
    color: var(--dsn-yellow);
}

.badge-pink {
    background: rgba(233, 30, 99, 0.1);
    color: var(--dsn-pink);
}

.badge-green {
    background: rgba(71, 164, 75, 0.1);
    color: var(--dsn-green);
}

.sidebar-footer {
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--slate-50);
}

.sidebar-history-card {
    background: rgba(233, 30, 99, 0.05);
    border-radius: 1rem;
    padding: 1rem;
}

.sidebar-history-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dsn-pink);
    margin-bottom: 0.5rem;
}

.sidebar-history-title svg {
    color: var(--dsn-pink);
}

.sidebar-history-title span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-history-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-500);
    line-height: 1.4;
}

/* Bookings Content */
.bookings-content {
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-100);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    min-height: 500px;
}

@media (min-width: 768px) {
    .bookings-content {
        padding: 2.5rem;
    }
}

.bookings-tab {
    display: none;
    animation: fadeIn 0.5s ease;
}

.bookings-tab.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-title {
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: var(--dsn-dark);
}

.tab-count {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    background: var(--slate-100);
    padding: 6px 12px;
    border-radius: 9999px;
}

.tab-count.text-pink {
    background: rgba(233, 30, 99, 0.1);
    color: var(--dsn-pink);
}

.tab-count.text-green {
    background: rgba(71, 164, 75, 0.1);
    color: var(--dsn-green);
}

/* Schedule Sections */
.schedule-section {
    margin-bottom: 2.5rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dsn-dark);
    margin-bottom: 1rem;
}

.section-label svg {
    color: var(--dsn-yellow);
}

.section-label:has(+ #scheduleDeposited) svg {
    color: var(--dsn-green);
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.schedule-item.deposited {
    background: rgba(71, 164, 75, 0.05);
    border-color: rgba(71, 164, 75, 0.1);
}

.schedule-item-content {
    flex: 1;
}

.schedule-item-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.schedule-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.schedule-item-time,
.schedule-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-400);
}

.schedule-item-time svg,
.schedule-item-date svg {
    width: 12px;
    height: 12px;
}

.schedule-badge {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.schedule-badge.pending {
    background: var(--white);
    color: var(--dsn-yellow);
    border: 1px solid rgba(205, 220, 57, 0.2);
}

.schedule-badge.deposited {
    background: var(--dsn-green);
    color: var(--white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Bookings Grid */
.bookings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Booking Card */
.booking-card {
    background: var(--white);
    border-radius: 1.5rem;
    border: 1px solid var(--slate-100);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .booking-card {
        flex-direction: row;
    }
}

.booking-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.booking-card.payment {
    border-color: rgba(233, 30, 99, 0.1);
}

.booking-card.deposited {
    border-color: rgba(71, 164, 75, 0.1);
}

.booking-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .booking-image {
        width: 192px;
        height: auto;
    }
}

.booking-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.booking-card:hover .booking-image img {
    transform: scale(1.1);
}

.booking-status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 8px;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.booking-status-badge.pending {
    background: var(--dsn-yellow);
    color: var(--dsn-dark);
}

.booking-status-badge.payment {
    background: var(--dsn-pink);
    color: var(--white);
}

.booking-status-badge.deposited {
    background: var(--dsn-green);
    color: var(--white);
}

.booking-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.booking-name {
    font-size: 1.125rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    color: var(--dsn-dark);
    line-height: 1;
    transition: color 0.3s ease;
}

.booking-card:hover .booking-name {
    color: var(--dsn-blue);
}

.booking-card.payment:hover .booking-name {
    color: var(--dsn-pink);
}

.booking-card.deposited:hover .booking-name {
    color: var(--dsn-green);
}

.booking-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    background: rgba(205, 220, 57, 0.1);
    border-radius: 0.375rem;
    font-size: 9px;
    font-weight: 900;
    color: var(--dsn-yellow);
}

.booking-rating svg {
    width: 10px;
    height: 10px;
    fill: var(--dsn-yellow);
}

.booking-court-type {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    margin-top: 0.5rem;
}

.booking-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 700;
    margin: 1rem 0;
}

.booking-address svg {
    width: 14px;
    height: 14px;
    color: var(--dsn-pink);
    flex-shrink: 0;
    margin-top: 2px;
}

.booking-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-600);
}

.booking-detail-item svg {
    width: 14px;
    height: 14px;
}

.booking-detail-item svg:first-child {
    color: var(--dsn-blue);
}

.booking-detail-item:nth-child(2) svg:first-child {
    color: var(--dsn-pink);
}

.booking-detail-item span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-price-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-price-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(233, 30, 99, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dsn-pink);
}

.booking-price-content p:first-child {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
}

.booking-price-content p:last-child {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--dsn-pink);
    line-height: 1.2;
}

.booking-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-booking {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-booking-primary {
    background: var(--dsn-pink);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(233, 30, 99, 0.2);
}

.btn-booking-primary:hover {
    transform: scale(1.05);
}

.btn-booking-secondary {
    background: transparent;
    color: var(--slate-400);
    padding: 0.5rem;
}

.btn-booking-secondary:hover {
    color: var(--dsn-blue);
}

.btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--dsn-dark);
    color: var(--white);
    border-radius: 0.75rem;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-view-detail:hover {
    background: var(--dsn-blue);
}

.booking-ticket {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dsn-green);
}

.booking-ticket svg {
    width: 16px;
    height: 16px;
}

.booking-ticket span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================
   RECURRING BOOKINGS STYLES
   ================================ */

/* Status Badges */
.status-badge-outline-yellow {
    font-size: 8px;
    font-weight: 900;
    color: var(--dsn-yellow);
    background: rgba(205, 220, 57, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-badge-solid-green {
    font-size: 8px;
    font-weight: 900;
    color: var(--white);
    background: var(--dsn-green);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Recurring Grid */
.recurring-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.recurring-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-500);
}

.recurring-meta-item svg {
    color: var(--dsn-pink);
}

.recurring-meta-item:nth-child(2) svg {
    color: var(--dsn-blue);
}

.recurring-meta-item span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.recurring-price-text {
    font-size: 12px;
    font-weight: 900;
    color: var(--dsn-blue);
}

.btn-text-only {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-text-only:hover {
    color: var(--dsn-dark);
}

/* Recurring Payment Card */
.recurring-payment-card {
    background: rgba(233, 30, 99, 0.05);
    border: 1px solid rgba(233, 30, 99, 0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .recurring-payment-card {
        flex-direction: row;
    }
}

.recurring-payment-img {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.recurring-payment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recurring-payment-content {
    flex: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .recurring-payment-content {
        text-align: left;
    }
}

.booking-name-sm {
    font-size: 16px;
    font-weight: 900;
    color: var(--dsn-dark);
}

.recurring-payment-meta {
    font-size: 10px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    margin-top: 4px;
}

.recurring-duration-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 4px 8px;
    background: rgba(233, 30, 99, 0.1);
    color: var(--dsn-pink);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
}

.recurring-payment-actions {
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .recurring-payment-actions {
        text-align: right;
    }
}

.recurring-payment-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.recurring-payment-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--dsn-pink);
    margin: 4px 0 8px;
}

.btn-payment-primary {
    background: var(--dsn-pink);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 15px -3px rgba(233, 30, 99, 0.2);
    transition: transform 0.3s;
}

.btn-payment-primary:hover {
    transform: scale(1.05);
}

/* Recurring Active Card */
.recurring-active-card {
    background: var(--white);
    border: 1px solid rgba(71, 164, 75, 0.2);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .recurring-active-card {
        flex-direction: row;
    }
}

.recurring-active-img-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.recurring-active-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recurring-active-overlay {
    position: absolute;
    inset: 0;
    background: rgba(71, 164, 75, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dsn-green);
}

.recurring-active-content {
    flex: 1;
    width: 100%;
}

.recurring-active-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.recurring-active-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 12px;
}

.detail-item-sm {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--slate-400);
}

.detail-item-sm svg {
    width: 12px;
    height: 12px;
}

.detail-item-sm span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-item-sm.text-blue {
    color: var(--dsn-blue);
}

.btn-manage-schedule {
    background: var(--dsn-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.3s;
}

.btn-manage-schedule:hover {
    background: var(--dsn-blue);
}