:root {
    --primary: #00c9a7;
    --primary-dark: #00a58e;
    --secondary: #845ec2;
    --dark: #1e1e2c;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #121212 0%, #1e1e2c 100%);
    color: var(--light);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem 1.5rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.back-button {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 201, 167, 0.4);
}

.back-button:active {
    transform: translateY(0);
}

.booking-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-left: 6px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.booking-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    position: relative;
}

.booking-info {
    flex-grow: 1;
}

.booking-info h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-info h3::before {
    content: attr(data-index);
    font-size: 1rem;
    background: var(--primary);
    color: var(--dark);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-info p {
    margin: 0.5rem 0 0 34px;
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.view-button {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 201, 167, 0.4);
}

.view-button:active {
    transform: translateY(0);
}

.booking-details {
    background: rgba(0, 201, 167, 0.1);
    padding: 1.5rem;
    display: none;
    border-top: 1px solid rgba(0, 201, 167, 0.2);
    animation: fadeIn 0.3s ease;
}

.booking-details p {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.booking-details p strong {
    color: var(--primary);
    font-weight: 500;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    align-self: flex-end;
}

.status-confirmed {
    background-color: rgba(40, 167, 69, 0.2);
    color: var(--success);
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--warning);
}

.no-bookings {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1.2rem;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spamBtn,
.readBtn {
    background: linear-gradient(to right, #e60039, #cc2b00);
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.spamBtn:hover {
    background: linear-gradient(to right, #ec023c, #e83300);
}

.readBtn {
    background: linear-gradient(to right, #00a3cc, #4fd068);
}

.readBtn:hover {
    background: linear-gradient(to right, #02bae8, #54d16d);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .booking-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .booking-actions {
        width: 100%;
        align-items: flex-start;
    }

    .view-button {
        width: 100%;
        justify-content: center;
    }
}
