/* =========================================
   1. CONTAINER
   ========================================= */
#user-booking-dashboard {
    background: transparent
}

/* Login Box */
.dashboard-login-box {
    max-width: 600px;
    margin: 50px auto;
    padding: 60px 40px;
    text-align: center;
    border-radius: 1.5rem;
    box-shadow: 0 0 12px -6px var(--ast-global-color-0);
}

.login-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 100px;
}

.login-pulse-dot {
    position: absolute;
    top: 30px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.login-title {
    margin: 0 0 15px 0;
}

.login-description {
    margin: 0 0 35px 0;
}

/* Dashboard Container */
.user-booking-dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 0;
}

.bookings-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
    justify-items: center;
}

/* No Bookings */
.dashboard-no-booking {
    width: 80%;
    text-align: center;
    padding: 60px 40px;
    border-radius: 1.5em;
    box-shadow: 0 0 12px -6px var(--ast-global-color-0);
    margin-bottom: 60px;
}

.no-booking-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.no-booking-title {
    color: var(--ast-global-color-0);
    margin: 0 0 10px 0;
}

.no-booking-message {
    color: #999;
}

/* =========================================
   2. ANIMATIONS
   ========================================= */
@keyframes pulse-shadow {

    0%,
    100% {
        box-shadow: 0 0 12px -6px #f44336
    }

    50% {
        box-shadow: 0 0 20px 0 #f44336
    }
}

@keyframes pulse-countdown {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

/* =========================================
   3. BOOKING CARD
   ========================================= */
.booking-card {
    transition: all .3s
}

.booking-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px -10px var(--ast-global-color-0) !important
}

.booking-card.overdue {
    animation: pulse-shadow 2s ease-in-out infinite
}

.booking-card.overdue:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px 0 #f44336 !important
}

.booking-card h4 {
    display: inline;
    margin: 0;
    padding: 0
}

/* Booking Card Layout */
.booking-card-wrapper {
    width: 80%;
    padding: 32px;
    border-radius: 1.5em;
    box-shadow: 0 0 12px -6px var(--ast-global-color-0);
    background: linear-gradient(135deg, var(--ast-global-color-4) 50%, var(--ast-global-color-5) 50%);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-number {
    font-size: 14px;
}

.booking-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.booking-store-title {
    margin: 0 0 15px 0;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

/* Prices */
.price-original {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 14px;
}

.price-final {
    color: #4aa200;
    font-weight: bold;
}

.price-discount {
    color: #ff6b6b;
    font-size: 14px;
}

.price-usd {
    font-size: 14px;
}

/* Discount Code Card */
.discount-code-card-user {
    margin-bottom: 40px;
    max-width: 75%;
}

/* =========================================
   4. COMPONENTS
   ========================================= */
/* Buttons */
.cancel-booking-btn:hover {
    background: #880000 !important;
    border-color: #880000 !important
}

.cancel-reason-btn {
    transition: all 0.3s;
}

/* Forms: Cancel Reasons */
#cancel-reasons label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: #111;
    border: 2px solid #333;
    border-radius: 0.5em;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    color: #aaa
}

#cancel-reasons label:hover {
    border-color: var(--ast-global-color-0);
    background: #1a1a1a;
}

#cancel-reasons label:has(input:checked) {
    border-color: var(--ast-global-color-0);
    background: #1a1a1a;
}

/* Indicators: Countdown Timer */
.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    transition: all .3s
}

.countdown-timer.green {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white
}

.countdown-timer.orange {
    background: linear-gradient(135deg, #ff9800 0%, #ffa726 100%);
    color: white
}

.countdown-timer.red {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: white;
    animation: pulse-countdown 1s ease-in-out infinite
}

/* Modals */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: var(--ast-global-color-0);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    background: none;
    color: var(--ast-global-color-1);
    transform: scale(1.1);
}

/* User Dashboard Modal */
.user-dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.user-dashboard-modal-content {
    background: #0009;
    color: #ddd;
    border-radius: 1.5em;
    padding: 24px;
    max-width: 600px !important;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 12px -6px var(--ast-global-color-0);
}

.modal-title {
    text-align: center;
    margin: 0 0 20px 0;
    color: #ddd;
}

.modal-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

.modal-actions {
    text-align: center;
    margin-top: 20px;
}

.cancel-reason-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #999;
    border-radius: 0.5em;
    background: #111;
    font-size: 16px;
    color: #fff;
}

/* Status Badges */
.status-badge {
    padding: 8px 16px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 1.5em 0;
}

.status-badge.status-pending {
    background: rgba(255, 152, 0, 0.2);
}

.status-badge.status-confirmed {
    background: rgba(76, 175, 80, 0.2);
}

.status-badge.status-rejected {
    background: rgba(108, 117, 125, 0.2);
}

.status-badge.status-canceled {
    background: rgba(220, 50, 50, 0.2);
}

.status-badge.status-no_show {
    background: rgba(244, 67, 54, 0.2);
}

.status-badge.status-completed {
    background: rgba(0, 172, 227, 0.2);
}

/* Notes */
.note-box {
    margin-top: 15px;
    padding: 12px;
    border-radius: 0.5em;
    border-left: 4px solid;
}

.note-box.note-canceled {
    background: rgba(220, 50, 50, 0.2);
    border-color: #dc3232;
}

.note-box.note-canceled strong {
    color: #ff6b6b;
}

.note-box.note-admin {
    background: rgba(74, 162, 0, 0.2);
    border-color: #4aa200;
}

.note-box.note-admin strong {
    color: #4aa200;
}

.note-box.note-admin-neutral {
    background: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
}

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width:768px) {
    .booking-card {
        width: 90% !important;
        padding: 20px !important
    }

    .booking-card>div {
        grid-template-columns: 1fr !important
    }

    .booking-card>div>div:last-child {
        text-align: center;
        flex-direction: row
    }

    .booking-number {
        font-size: 10px !important
    }

    .show-card-btn,
    .cancel-booking-btn {
        width: 80%
    }

    .save-button-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .save-button-container button {
        width: 100%;
        max-width: 300px;
    }

    .countdown-timer {
        padding: 5px 8px;
        font-size: 12px
    }

    .status-badge {
        padding: 5px 8px !important;
        font-size: 12px !important
    }

    .dashboard-login-box,
    .dashboard-no-booking {
        width: 90% !important;
        padding: 40px 20px !important;
    }
}

/* End of user-dashboard.css */