html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #BF2A52;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

a, .btn-link {
    color: #006bb7;
}
*{
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: #333;
}

.spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 5px solid #BF2A52;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*BOTONES*/

.yellow-btn {
    background-color: #FBC46C;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.yellow-btn:hover{
    background-color: #ffb744;
}

.yellow-action-btn{
    background-color: #FBC46C;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-decoration: underline;
    text-decoration-color: #FBC46C ;
}

.yellow-action-btn:hover{
    text-decoration: underline;
    text-decoration-color: #ffb744;
    background-color: #ffb744;
}



.admin-btn-secondary {
    background: #ffffff;
    color: #BF2A52;
    border: 1px solid var(--primary-pink-dark);
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    margin-left: 0.8rem;
    transition: background 0.18s, border-color 0.18s;
}
.admin-btn-secondary:hover, .admin-btn-secondary:focus {
    background: #BF2A52;
    color: #fff;
    border-color: var(--primary-pink);
}

.admin-btn-secondary:hover span {
    
    color: #fff;
    border-color: var(--primary-pink);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: red;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
}



.btn-cancel {
    background-color: #666;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}


.btn-cancel:hover {
    background-color: #555;
}

.btn-cancel:active {
    transform: translateY(1px);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
     }
.carousel-control:hover:not(:disabled) {
    background: rgba(0,0,0,0.8);
     }
.carousel-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
     }
.carousel-control.prev {
    left: 20px;
     }
.carousel-control.next {
    right: 20px;
     }

     .back-button{
        background:white;
        border:none; 
        border-radius:50%;
        width:40px; 
        height:40px; 
        display:flex; 
        align-items:center;
        justify-content:center; 
        cursor:pointer;
        box-shadow:0 2px 8px rgba(0,0,0,.15); 
        font-size:16px; 
        color:#333;
        transition:all .2s ease;
    }
    .back-button:hover{ 
        box-shadow:0 4px 12px rgba(0,0,0,.2); 
        transform:translateY(-1px); 
    }
    .back-button:active{ 
        transform:translateY(0); 
    }

    .size-box{
        width:50px; 
        height:50px;
        border:2px solid #a0a0a0;
        border-radius:6px;
        background:white; color:#333;
        font-weight:bold; 
        cursor:pointer;
        transition:all .2s ease;
    }
    .size-box:hover{ 
        background:#f5f5f5; 
    }
    .size-box.selected{
        background:#BF2A52; 
        color:white;
        border-color:#BF2A52;
    }
    .size-box.out-of-stock {
        position: relative;
        opacity: 0.45;
        cursor: not-allowed;
        color: #BF2A52;
    }
    
    .size-box.out-of-stock::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 140%;    
        height: 3px;       
        background: #BF2A52;  
        transform: translate(-50%, -50%) rotate(45deg);
        pointer-events: none;
    }
    
    .status-pending {
        background: var(--warning);
        color: #fff;
        padding: 0.20rem 0.82rem;
        border-radius: 18px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
    }
.switch {
    position: relative;
    display: inline-flex; /* Aligns text and toggle horizontally */
    align-items: center; /* Vertically centers them */
    gap: 8px; /* Space between text and toggle */
    cursor: pointer;
}

/* Hide native checkbox visually but keep it functional */
.input-check-box {
    appearance: none;
    -webkit-appearance: none;
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
}

/* Slider */
.input-check-box + .slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 25px;
    transition: background-color 0.3s;
    cursor: pointer;
}

/* Circle */
.input-check-box + .slider::before {
    content: "";
    position: absolute;
    height: 21px;
    width: 21px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* Checked */
.input-check-box:checked + .slider {
    background-color: #BF2A52;
}

.input-check-box:checked + .slider::before {
    transform: translateX(25px);
}


.input-check-box:checked + .slider::before {
    transform: translateX(25px);
}

    @media(max-width: 800px){

        .modal-actions .yellow-btn, .modal-actions .btn-cancel{
            font-size: 1.5vh;
        }
    }

    @media(max-width:675px){

        .modal-actions .yellow-btn, .modal-actions .btn-cancel{
            font-size: 0.53rem;
        }
    }
    
    @media(max-width: 565px){

       .event-btns .yellow-btn, .event-header-container .yellow-btn {
            background-color: #FBC46C;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.5rem;
            transition: background-color 0.3s ease;
        }
        
        .yellow-btn:hover{
            background-color: #ffb744;
        }
        
        .yellow-action-btn{
            background-color: #FBC46C;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.9rem;
            transition: background-color 0.3s ease;
            text-decoration: underline;
            text-decoration-color: #FBC46C ;
        }
        
        .yellow-action-btn:hover{
            text-decoration: underline;
            text-decoration-color: #ffb744;
            background-color: #ffb744;
        }

        .form-group label{
            margin-bottom:5px;
            font-weight:600;
            font-size: 0.75rem;
        }
    }

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Edit Form*/

.user-edit-form, .user-service-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9fb;
    border-radius: 10px;
    margin-bottom: 4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Adds spacing between form groups */
}

.user-edit-form{
    gap: 0rem;
}

@media (max-width: 500px) {
    .user-edit-form .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .user-edit-form .form-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .user-edit-form label {
        display: block;
        margin-bottom: 0.5rem;
    }

    .user-edit-form input,
    .user-edit-form select,
    .user-edit-form textarea {
        width: 100%;
    }
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Edit Form Inputs*/

.form-control:focus{
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #BF2A52;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control.invalid {
    border-color: #dc3545;
}

.form-control::placeholder{
    color: #c0c0c0; 
}

/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Donate Div*/

.donate-container {
    max-width: 100%;
    margin: 6rem auto;
    padding: 0 2rem;
    text-align: center;
}

.donate-title {
    color: #BF2A52;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.donate-description {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #333;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donation-options .yellow-btn{
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1.5rem;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.popup-content {
    background-color: white;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background-color: #BF2A52;
    color: white;
    border-radius: 12px 12px 0 0;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
}


.popup-body {
    padding: 2rem;
    text-align: center;
}

.popup-body p {
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.6;
}

.thank-you-text {
    color: #BF2A52;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media(max-width: 500px){

    .popup-content {
        background-color: white;
        border-radius: 12px;
        max-width: 450px;
        width: 85%;
        max-height: 75vh;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: slideIn 0.3s ease;
    }

    .donate-title {
        color: #BF2A52;
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        font-weight: bold;
    }
    
    .donate-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
        color: #333;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .donation-options .yellow-btn{
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        font-size: 1rem;
    }

}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Cart Drawer Divs*/

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.cart-drawer.open {
    pointer-events: all;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.cart-overlay.active {
    background: rgba(0, 0, 0, 0.5);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open .cart-content {
    transform: translateX(0);
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgb(224, 224, 224);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.cart-header h3 {
    margin: 0;
    color: #BF2A52;
    font-weight: 600;
}

.cart-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid  rgb(224, 224, 224);
    align-items: center;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #BF2A52;
}

.item-price {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 14px;
    color: black
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a0a0;
}

.quantity-controls button {
    width: 5px;
    height: 30px;
    border: 1px solid white;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
}

.remove-btn:hover {
    background: white;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgb(224, 224, 224);
    background: white;
}

.cart-total {
    text-align: left;
    margin-bottom: 15px;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Checkout Divs*/

.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 20px;
}

.checkout-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #BF2A52;
    font-weight: 600;
}

.empty-checkout {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-checkout a {
    color: #007bff;
    text-decoration: none;
}

.order-summary {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-summary h2 {
    margin-bottom: 4.7rem;
    color: #333;
    border-bottom: 2px solid rgb(201, 201, 201);
    padding-bottom: 10px;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    background: #f9f9f9;
    margin-bottom: 10px;
    border-radius: 5px;
}

.item-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.item-info {
    flex-grow: 1;
}

.checkout-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.item-info h3 {
    margin: 0 0 5px 0;
    color: #BF2A52;
    font-size: 1.1em;
}

.item-price {
    margin: 0 0 5px 0;
    color: black
}

.item-quantity {
    margin: 0;
    color: #a0a0a0;
    font-size: 0.5em;
}

.item-total {
    font-size: 1.2em;
    color: #333;
}

.checkout-total {
    text-align: right;
    padding: 20px 0;
    border-top: 2px solid rgb(201, 201, 201);
    margin-top: 20px;
}

.checkout-total h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.payment-section {
    text-align: center;
    margin-top: 30px;
}

.payment-btn {
    background: #FBC46C;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payment-btn:hover {
    background-color: #ffb744;   
    transform: translateY(1px);   
}

.payment-btn i {
    font-size: 1.1em;
}

.ath-pay-btn {
    background-color: #00b383;
    color: white;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

.ath-pay-btn:hover {
    background-color: #009e72;
    transform: translateY(-2px);
}

.ath-pay-btn:active {
    transform: translateY(0);
}

.checkout-content{
    display:grid;
    grid-template-columns: 1fr 1fr;   /* two equal columns */
    gap: 40px;
}

.ath-steps li {
    font-size: 0.9rem;
}

/* === RIGHT‑HAND FORM === */
.checkout-form{
    background:#f9f9f9;
    border-radius:8px;
    padding:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
    margin-bottom:15px;
    width: 100%;
}

.form-group label{
    margin-bottom:5px;
    font-weight:600;
}

.form-group input {
    width: 100%;
    padding: 0.5rem -2rem; 
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.85rem;
    box-sizing: border-box; 
}

/* === PAYMENT BUTTONS === */
.payment-actions{
    display:flex;
    flex-direction:column;
    gap:15px;
    margin-top:25px;
}

.validation-error {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .checkout-container {
        padding: 10px;
        margin: 1rem 0;
    }

    .checkout-container h1 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }

    .checkout-content {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .checkout-item {
        flex-direction: column;
        align-items: center;
        text-align: left;
        padding: 10px;
    }

    .item-image {
        width: 30%;
        height: auto;
    }

    .item-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .checkout-item .item-image{
        width: 50%;
        height: auto;
    }

    .item-info h3 {
        font-size: 1rem;
    }
    .item-info{
        text-align: left;
        width: 100%;
    }

    .item-price,
    .item-quantity {
        font-size: 0.9rem;
    }

    .item-total{
        display: none;
    }

    .checkout-total h3 {
        font-size: 1.2rem;
    }

    .payment-btn {
        font-size: 1rem;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }

    .ath-pay-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }

    .order-summary h2 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .form-group input {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .payment-actions {
        gap: 10px;
        margin-top: 15px;
    }

    .empty-checkout {
        padding: 20px;
    }

    .checkout-form {
        padding: 15px;
    }

    .ath-steps li {
        font-size: 0.85rem;
    }
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Event Divs*/

/* Events Container */
.events-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* Page Title */
.events-title {
    color: #BF2A52;
    font-size: 2rem;
    margin-bottom: 3rem;
    margin-top: 4rem;
    font-weight: 600;
    text-align: center;
}

/* Event Cards */
.event-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-title {
    color: #BF2A52;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.event-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.event-description {
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.event-btns .confirm-btn {
    flex: 1;
    max-width: 60%;
}

.event-btns .admin-btns {
    display: flex;
    gap: 0.5rem;
}

.event-btns .admin-btns button {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
}

.event-header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.event-header-container h1.events-title {
    grid-column: 2;
    margin: 0;
    text-align: center;
}

.event-header-container .header-btn {
    grid-column: 3;
    justify-self: end;
    color: white;
    padding: 0.6rem 1.3rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s;
}

/* Modal Styles */
.attendance-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.attendance-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.attendance-title {
    color: #BF2A52;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

/* Form Elements */
.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.attendance-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.attendance-input:focus {
    outline: none;
    border-color: #BF2A52;
    box-shadow: 0 0 0 2px rgba(255, 121, 161, 0.2);
}

/* Attendance Result */
.attendance-result {
    margin-bottom: 1rem;
    text-align: center;
}

.result-text {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 4px;
}

.result-text.success {
    color: #28a745;
    background-color: #d4edda;
}

.result-text.error {
    color: #dc3545;
    background-color: #f8d7da;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media(max-width: 480px) {

    .events-title {
        color: #BF2A52;
        font-size: 1.7rem;

    }

    .event-card {
        background-color: white;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .event-title {
        color: #BF2A52;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }   
    .event-date {
        color: #666;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .event-description {
        color: #333;
        margin-bottom: 1rem;
        line-height: 1.5;
        font-size: 0.8rem;
    }
    .event-header-container .switch{
            position: relative;
            display: inline-flex; /* Aligns text and toggle horizontally */
            align-items: center; /* Vertically centers them */
            gap: 5px; /* Space between text and toggle */
            cursor: pointer;
            font-size: 0.75rem;
        
    }
    .event-header-container .switch input::before {
        content: "";
        position: absolute;
        width: 14px;
        height: 14px;
        background: white;
        border-radius: 50%;
        top: 1px;
        left: 1px;
        transition: transform 0.3s;
    }
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Home Divs*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

.video-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 70vh;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: brightness(80%);
}
  
  .association-info {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
    width: 100vw;
    position: relative;
    margin-left: calc(-50vw + 50%);
  }
  
  .association-info h2 {
    color: #BF2A52;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .association-info p {
    margin: 1.5rem auto;
    text-align: justify;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    padding: 0 2rem;
    max-width: 1200px;
    line-height: 1.6;
  }
  
  .second-header {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #BF2A52;
    font-weight: 600;
    text-align: center;
  }
  
  .heading-divider {
    border: none;
    height: 6px;
    width: 40%;
    background: #BF2A52;
    margin: 2.5rem auto;
    margin-top: 2rem;
  }

  .info-row-aligned {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }
  
  .info-list {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 500px;
  }
  
  .join-button {
    height: fit-content;
    padding: 0.6rem 1.2rem;
    background-color: #FBC46C;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    white-space: nowrap;
    margin-bottom: 2rem;
  }
  
  .join-button:hover {
    background-color: #ffb744;
  }
  .content-boxes {
    background-color: #f9f9f9;
    padding: 4rem 1rem;
    margin-top: -60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  }
  
  .box-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
  }
  .box-image_peru{
    height:53vh;
    width: 70%;
    margin: 0 auto;
    margin-bottom: 3rem;
    filter: brightness(80%);
  }

  .box-image_peru img{
    border-radius: 10px;
  }
  
  .box-image img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
  }
  .box:nth-child(3) .box-image img  {
    height: 300px;
}
  
  .box:hover .box-image img {
    transform: scale(1.05);
  }
  
  .box-content {
    padding: 1.5rem;
    flex-grow: 1;
    margin-top:-2rem;
  }
  
  .box-content h3 {
    color: #BF2A52;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .box-content p {
    color: #555;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    line-height: 1.6;
    text-align: left;
  }

  @media screen and (max-width: 1024px) {
    .carousel {
      min-height: 500px;
    }
    
    .association-info {
      padding: 5rem 3rem;
    }
    
    .association-info p {
      padding: 0 4rem;
      font-size: 1.1rem;
    }

    .box-image_peru{
        height:53vh;
        width: 75vw;
        margin: 0 auto;
        margin-bottom: 3rem;
      }
    
    .content-boxes {
        background-color: #f9f9f9;
        padding: 4rem 1rem;
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Fixed 2 columns */
        gap: 2rem;
        justify-items: center;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
      }
    
    .box-image {
      height: 300px;
    }
    
    .box-content {
      padding: 2rem;
    }
    
    .box-content h3 {
      font-size: 1.2rem;
    }
    
    .box-content p {
      font-size: 1rem;
    }
  }

  @media screen and (min-width: 768px) and (max-width: 1023px) {
    .carousel {
      min-height: 450px;
    }
    
    .association-info {
      padding: 4rem 2.5rem;
    }
    
    .association-info p {
      padding: 0 3rem;
      font-size: 1rem;
    }
    
    .content-boxes {
      padding: 3rem 1.5rem;
      gap: 2rem;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      margin-top: 25px;
    }
    
    .box-image {
        height: 250px;
      }
      .box-image img {
          height: 325px;
        }
        .box:nth-child(3) .box-image  {
          height: 310px;
      }

    .box-image_peru{
        height:53vh;
        width: 85%;
        margin: 0 auto;
        margin-bottom: 3rem;
      }
    
    .box-content {
      padding: 1.8rem;
    }
    
    .box-content h3 {
      font-size: 1.1rem;
    }
    
    .box-content p {
      font-size: 0.95rem;
    }
    .info-row-aligned {
        flex-direction: right;
        align-items: flex-start;
        justify-content: center;
      }
    
      .join-button {
        margin-top: 1rem;
        width: 100%;
        max-width: 300px;
      }
  }
  
  /* Phone styles (767px and below) */
  @media screen and (max-width: 767px) {
    .carousel {
      height: 50vh;
      min-height: 350px;
    }
    
    .association-info {
      padding: 3rem 1.5rem;
    }
    
    .association-info p {
      padding: 0 1rem;
      font-size: 0.95rem;
      text-align: left;
      text-align: justify;
    }
    
    .video-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: 60vh;
        min-height: 400px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        display: block;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .content-boxes {
      padding: 2rem 3.5rem;
      gap: 1.5rem;
      grid-template-columns: 1fr;
      margin-top: 15px;
    }
    
    .box {
      max-width: none;
    }
    
    .box-image {
      height: 250px;
    }
    .box-image img {
        height: 325px;
      }
      .box:nth-child(3) .box-image  {
        height: 310px;
    }

    .box-image_peru{
        height:53vh;
        width: 95%;
        margin: 0 auto;
        margin-bottom: 3rem;
      }
    
    .box-content {
      padding: 1.5rem;
    }
    
    .box-content h3 {
      font-size: 1.05rem;
    }
    
    .box-content p {
      font-size: 0.9rem;
    }
    
    .heading-divider {
      width: 60%;
      margin: 2rem auto;
    }
  }

  @media screen and (max-width: 480px) {
    .carousel {
      height: 45vh;
      min-height: 300px;
    }
    
    .association-info {
      padding: 2.5rem 1rem;
    }
    
    .association-info p {
      padding: 0 0.5rem;
      font-size: 0.9rem;
      text-align: justify;
    }

    .video-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        height: 30vh;
        min-height: 400px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center center;
        display: block;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .content-boxes {
      padding: 0.5rem 1.5rem;
      gap: 1.2rem;
      margin-top: 10px;
      margin-bottom: 1rem;
    }
    
    .box-content {
      padding: 1.2rem;
    }
    
    .box-content h3 {
      font-size: 1rem;
    }
    
    .box-content p {
      font-size: 0.85rem;
    }
  }
   
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Merch-Page Divs*/

.loading-screen{
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: white;
    margin-top: 4.33rem;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20rem;
}
.loading-content{ 
    text-align:center;
    font-size:1.2rem;
    color:#333;
 }
.loading-content::after{
    content:'';
    display:inline-block;
    width:20px; 
    height:20px; 
    margin-left:10px;
    border:2px solid #f3f3f3; 
    border-top:2px solid #333;
    border-radius:50%; 
    animation:spin 1s linear infinite;
}
@keyframes spin{ 
    0%{transform:rotate(0)} 100%{transform:rotate(360deg)} 
}

.merchpage-container{ 
    display:flex;
    flex-wrap: wrap;
    padding:6rem;
    background: #f9f9f9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
    gap:2rem;
    justify-content: center;
    align-items: center;

}
.merchpage-image{
    height: 110%;
    object-fit: fill;
}
.merchpage-image img{ 
    max-width:100%; 
    height:440px; 
    border-radius:10px; 
    background: #f9f9f9;
    padding:1rem; 
    object-fit: fill;
    width:500px; 
}
.merchpage-details{ 
    margin-top:2.5rem; 
    max-width:400px; 
    display:flex; 
    flex-direction:column; 
    gap:1rem; 
}
.merchpage-details h1{ 
    font-size:2.6rem; 
    font-weight:600; 
    color:#BF2A52; 
}
.price{ 
    font-size:1.5rem; 
    font-weight:bold; }
.description{ 
    font-size:1rem; 
    color:#a0a0a0; 
}

.size-selector{ 
    display:flex; 
    gap:.75rem; 
    margin-top:0; 
}

.back-arrow{ 
    position:absolute; 
    top:140px; 
    left:20px; 
    z-index:999; 
}

@media(max-width:500px){

    .merchpage-container {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .merchpage-image img {
        width: 100%;
        padding: 0.5rem;
    }

    .merchpage-details h1{ 
        font-size:2rem; 
        font-weight:600; 
        color:#BF2A52; 
    }

    .price{ 
        font-size:1.3rem; 
        font-weight:bold;
    }

    .description{ 
        font-size:1rem; 
        color:#a0a0a0; 
    }
    
    .size-selector{ 
        display:flex; 
        gap:.75rem; 
        margin-top:0;
        margin-bottom: 1rem;
        width: 340px; 
    }
    .merchpage-container .yellow-btn{

        margin-bottom: 2rem;
    }
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Merch Divs*/
.loading-screen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    margin-top: 5.85rem;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-content{
    text-align: center;
    font-size: 1.2rem;
    color: #333;
}

.loading-content::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.merch-header-container{
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;
    align-items: center;
    margin: 4rem auto 3rem;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
    position: relative;
}

.merch-container {
    max-width: 1200px;
    margin: 2rem auto;
    margin-top: -4rem;
    padding: 2rem 1rem 4rem;
    background: transparent;
}

.merch-title {
    color: #be4b6a;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.3;
}

.merch-header-container .yellow-btn{
    background-color: #FBC46C;
    color: white;
    border: 0.75px solid #e5e7eb;
    padding: 1rem 0.7rem;
    margin-left: 1rem;
    margin-bottom: 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: fit-content;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.merch-item {
    text-align: left;
    font-size: 1rem;
    text-decoration: underline;
    position: relative;
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #000;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.merch-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: transparent;
    display:flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.merch-details {
    padding: 1rem;
}

.merch-name {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.merch-price {
    font-size: 1.2rem;
    color: #be4b6a;
    font-weight: 700;
    margin: 0;
}

.edit-delete-btns{
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.no-underline {
    color: #f9f9f9;
}

@media (max-width: 768px) {
    .loading-screen {
        margin-top: 4rem;
        padding: 1rem;
    }
    
    .merch-container {
        padding: 1rem 0.5rem 2rem;
        margin-top: 1rem;
    }
    
    .merch-header-container {
        margin: 2rem auto 2rem;
        padding: 0 0.5rem;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .merch-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .merch-header-container .yellow-btn {
        margin: 0;
        padding: 0.8rem 1rem;
        font-size: 0.7rem;
    }
    
    .merch-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .merch-image {
        height: 250px;
    }
    
    .merch-details {
        padding: 0.8rem;
    }
    
    .merch-name {
        font-size: 1rem;
    }
    
    .merch-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .merch-title {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
    }
    
    .merch-header-container .yellow-btn {
        padding: 0.7rem 1rem;
        font-size: 0.6rem;
    }
    
    .merch-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .merch-image {
        height: 200px;
    }
    
    .merch-details {
        padding: 0.6rem;
    }

    .merch-price {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-badge {
        top: 10px;
        left: 10px;
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .edit-delete-btns {
        gap: 0.3rem;
        margin:0;
    }
}

@media (max-width: 320px) {
    .merch-container {
        padding: 0.5rem 0.25rem 1rem;
    }
    
    .merch-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .merch-header-container .yellow-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.55rem;
    }
    
    .merch-image {
        height: 180px;
    }
    
    .merch-name {
        font-size: 0.9rem;
    }
    
    .merch-price {
        font-size: 1rem;
    }
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Payment Success Divs*/

.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    margin-top: -5rem;
}

.success-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: white;
    border-radius: 10px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.success-content h1 {
    color: #28a745;
    margin-bottom: 20px;
}

.success-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.success-actions {
    margin-top: 30px;
}

.continue-shopping-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FBC46C;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.continue-shopping-btn:hover {
    background-color: #ffb744;   
    transform: translateY(1px);  
}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*Profile Dashboard*/

.profile-dashboard {
    max-width: 1000px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    font-family: "Segoe UI", sans-serif;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    border-bottom: 2px solid #BF2A52;
    padding: 1.8rem 2rem;
    background: #fff5f8;
}

.profile-header-main {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.first-info{
    margin-bottom: 0.3rem;
}

.profile-header-actions {
    display: flex;
    gap: 0.4rem;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    background: #BF2A52;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-header h2 {
    color: #BF2A52;
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.2;
}

.profile-role {
    background: #BF2A52;
    color: white;
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-main-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.profile-content-area {
    display: flex;
    gap: 2rem;
}

.profile-sidebar {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 1.5rem;
}

.profile-details {
    flex: 2 1 340px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 1.3rem 1.2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.profile-card h4 {
    color: #BF2A52;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.profile-stats-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    width: 100%;
}

.profile-stat {
    flex: 1;
    background: #fff;
    border: 2px solid #BF2A52;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.profile-stat:hover {
    background: #fff7fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-label {
    color: #BF2A52;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #444;
}

.profile-events-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-events-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #ffd6e6;
    color: #444;
}

.profile-events-list li:last-child {
    border-bottom: none;
}

.popup-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1rem;
    }

    .profile-sidebar {
        flex: 1 1 100%;
        width: 100%;
        max-width: none; 
    }
    
    .profile-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .profile-header-actions {
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .profile-main-content {
        padding: 1rem;
    }
    
    .profile-content-area {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .profile-header .yellow-btn {
        width: 100%;
        text-align: center;
    }
    
    .profile-stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-stat {
        padding: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.6rem;
    }
}


/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #BF2A52;
}

.content {
    padding:0rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    margin-top: 0.25rem;
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


.user-form{
    height: 1000px;
    width:200px;
}

.modal-content {
    background: white; /* matches footer yellow */
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(255,121,161,0.18);
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 340px;
    max-width: 95vw;
    width:50%;
    color: #BF2A52; /* matches main pink */
    border: 3px solid #BF2A52;
    text-align: center;
    font-size: 1.1rem;
}

.modal-content h3 {
    color: #BF2A52;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-content button {
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background: #ffb744;
}

.div-header h2 {
    font-weight: 700;
}

.div-header button {
    /* Optional: style your button as needed */
}

.user-details-modal {
    max-width: 550px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(142,20,93,0.09);
    padding: 2.2em 2em 1.2em 2em;
    color: #8e145d;
    border: 3px solid #BF2A52;
    position: relative;
    animation: pop-scale 0.13s;
}
.user-details-title {
    color: #BF2A52;
    margin-bottom: 0;
}
.user-details-role {
    color: #FBC46C;
    margin-top: 0.3em;
    margin-bottom: 1.4em;
}
.user-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em 2em;
}
.user-detail label {
    display: block;
    font-weight: bold;
    color: #BF2A52;
    margin-bottom: 0.1em;
}
.user-detail span, .user-detail div {
    color: #342136;
    font-size: 1em;
}
.user-bio .bio-content {
    background: #ffe3ef;
    color: #8e145d;
    border-radius: 8px;
    padding: 0.6em 0.8em;
    margin-top: 0.25em;
}
.user-event-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    margin-top: 0.25em;
}
.event-id-badge {
    background: #ffe3ef;
    color: #8e145d;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 0.97em;
    margin-right: 0.2em;
    font-weight: 500;
}

@keyframes pop-scale {
    from {transform: scale(0.96);}
    to   {transform: scale(1);}
}

/* Make the user details grid more horizontal */
.user-details-grid {
    display: grid;
    height:auto;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(50px, auto);
    gap: 18px 32px; /* More horizontal spacing, less vertical! */
    align-items: start;
    max-width: 800px; /* makes content wide horizontally */
}

/* Merge biography and event id on one row for horizontal space */
.user-detail.user-bio,
.user-detail:nth-last-child(2) {
    grid-column: 1 / span 1.5;
}

/* Make the modal wider and less tall */
.user-details-modal {
    width: 70vw;
    min-width: 500px;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px 38px 28px 38px;
    display: block;
}

/* Horizontal button row for modal actions */
.modal-content.user-details-modal {
    display: block;
    margin: 20px auto 0 auto;
}


/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
:root {
    --primary-pink: #ea6b93;
    --primary-pink-dark: #d84d78;
    --beige-bg: #f5efe6;
    --beige-card: #fef0ef;
    /*--#6B7280-text: #2c2c38;*/
    --success: #26b050;
    --warning: #f59e42;
    --light-border: #ece1db;
}

/*Admin Dashboard*/
.admin-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 1080px;
    margin: 8% auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 18px rgba(234, 107, 147, 0.06);
    padding: 2rem 3rem;
    color: var(--navy-text);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--light-border);
    padding-bottom: 1.1rem;
    margin-bottom: 2rem;
    background: transparent;
}

.admin-header-main {
    display: flex;
    align-items: center;
}

.admin-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #BF2A52;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #fff;
    font-weight: 600;
    margin-right: 1.2rem;
    box-shadow: 0 2px 10px rgba(234, 107, 147, 0.14);
}

.admin-title-group h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--primary-pink-dark);
    font-weight: 700;
}

.admin-role {
    display: block;
    font-size: 1.1rem;
    color: #bc6079;
    margin-top: 3px;
    font-weight: 500;
}


.admin-main-content {
    margin-top: 1.2rem;
}

.admin-stats-row {
    display: flex;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
}

.admin-stat-card {
    flex: 1 1 0;
    border-radius: 12px;
    background: white;
    padding: 1.3rem 0.9rem 1.1rem 1.3rem;
    text-align: left;
    box-shadow: 0 1px 12px rgba(234, 107, 147, 0.07);
    border: 1px solid var(--light-border);
}

.stat-label {
    color: #BF2A52;
    font-size: 1.01rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.85;
    letter-spacing: 0.02em;
}
.stat-value {
    font-size: 2rem;
    color: #bc6079;
    font-weight: bold;
    letter-spacing: 0.01em;
}

.admin-section {
    margin-left: 10rem;
    margin-right: 10rem;
    margin-bottom:11.9rem;
    margin-top: 60px;
}
.section-title {
    color: #BF2A52;
    font-weight: 600;
    margin-bottom: 1rem;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--beige-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(234, 107, 147, 0.03);
}
.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-border);
    font-size: 1.07rem;
    background: white;
}
.admin-table th {
    color: #BF2A52;
    background: white;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.status-approved {
    background: var(--success);
    color: #fff;
    padding: 0.20rem 0.82rem;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .admin-dashboard {
        padding: 1.3rem 0.7rem;
    }
    .admin-stats-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 800px) {
    .admin-dashboard {
      max-width: 95vw;      
      margin: 6% auto;
      padding: 1.5rem 2rem;
      border-radius: 16px;
      box-shadow: 0 4px 15px rgba(234, 107, 147, 0.12);
    }
  
    .admin-header {
      flex-wrap: wrap;
      gap: 0.8rem;
      padding-bottom: 0.8rem;
    }
  
    .admin-avatar {
      width: 48px;
      height: 48px;
      font-size: 1.8rem;
      margin-right: 0.8rem;
    }
  
    .admin-title-group h2 {
      font-size: 1.6rem;
    }
  
    .admin-role {
      font-size: 1rem;
      margin-top: 2px;
    }
  
    .admin-stats-row {
      gap: 1rem;
    }
  
    .admin-stat-card {
      padding: 1rem 0.8rem 1rem 1rem;
    }
  
    .stat-label {
      font-size: 0.95rem;
    }
  
    .stat-value {
      font-size: 1.7rem;
    }
  
    .admin-section {
      margin-left: 2rem;
      margin-right: 2rem;
      margin-bottom: 6rem;
      margin-top: 40px;
    }
  
    .section-title {
      font-size: 1.3rem;
    }
  
    .admin-table th,
    .admin-table td {
      font-size: 0.95rem;
      padding: 0.65rem 0.8rem;
    }
  
  .admin-dashboard button,
  .admin-stat-card button{
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;        
    display: block;     
    box-sizing: border-box; 
  }
}
  
  @media (max-width: 576px) {
    .admin-dashboard {
      max-width: 100vw;       
      margin: 4% auto;
      padding: 1rem 1rem;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(234, 107, 147, 0.08);
    }
  
    .admin-header {
      flex-direction: column;
      align-items: flex-start;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--light-border);
    }
  
    .admin-header-main {
      width: 100%;
      display: flex;
      align-items: center;
    }
  
    .admin-avatar {
      width: 40px;
      height: 40px;
      font-size: 1.5rem;
      margin-right: 0.6rem;
      box-shadow: none;
    }
  
    .admin-title-group h2 {
      font-size: 1.3rem;
      margin-bottom: 0.2rem;
    }
  
    .admin-role {
      font-size: 0.9rem;
    }
  
    .admin-stats-row {
      flex-direction: column;
      gap: 0.8rem;
    }
  
    .admin-stat-card {
      padding: 0.9rem 0.7rem;
      font-size: 0.9rem;
    }
  
    .stat-label {
      font-size: 0.85rem;
    }
  
    .stat-value {
      font-size: 1.4rem;
    }
  
    .admin-section {
      margin: 0 1rem 4rem 1rem;
      margin-top: 30px;
    }
  
    .section-title {
      font-size: 1.1rem;
    }
  
    .admin-table th,
    .admin-table td {
      font-size: 0.85rem;
      padding: 0.5rem 0.5rem;
    }

    .admin-dashboard button,
    .admin-stat-card button{
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        width: 90%;       
        display: block;
        box-sizing: border-box;
      }
  }
  

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/

/*All Tables*/


.div-header {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;       /* max width for large screens */
    width: 100%;             /* full width within container */
    margin: 2rem auto 2rem auto; /* vertical spacing and centered */
    padding: 0 2rem;
    box-sizing: border-box;
}

.users-title{
    color: #BF2A52;
}

.user-container {
    margin-top: 4rem;
    margin-bottom: -5rem;
}

.users-table-container {
    max-width: 800px;          /* default max width */
    margin: -10px auto 235px auto;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.users-table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    font-size: 1rem;
}

.users-table td {
    padding: 1rem 0.5rem; 
    background: #fff;
}
.users-table tr:last-child {
    border-bottom: none; 
}

.users-table td,
.users-table th {
    padding: 10px 18px;
    white-space: nowrap;
    border-radius: 10px;
}

.users-table th{
    padding: 30px 18px;
}

.users-table td{
    padding: 10px 40px;
}

.search-btn-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.search-box {
    display: flex;
    gap: 12px;
}

.btn-group-wrapper {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.filter-options {
    position: absolute;
    top: 40px; /* Adjust based on icon/button height */
    left: 330px; /* Adjust to align under your filter icon */
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 260px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    z-index: 100;
}

.filter-options label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #2c2c2c;
}

.filter-label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}
.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
    margin: 0 0.75rem;
}

.filter-select {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #fafafa;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #BF2A52;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}
.user-search-bar {
    width: 300px;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2364748b"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21 21-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>') no-repeat 16px center;
    background-size: 18px;
    transition: all 0.2s ease;
    outline: none;
}

@media (max-width: 1540px) {
    .div-header {
        max-width: 100%;
        padding: 0 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .users-table-container {
        max-width: 90vw;
        padding: 1.8rem 1.5rem;
        margin-top: 50px;
        margin-bottom: 180px;
    }
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
    }
}

@media (max-width: 800px) {
    .div-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0 1.2rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .user-container {
        margin-top: 4rem;
        margin-bottom: -3rem;
    }

    .users-table-container {
        max-width: 95vw;
        padding: 1.5rem 1.2rem;
        margin-top: 40px;
        margin-bottom: 150px;
    }
    .user-search-bar{
        width:300px;
    }

}

@media (max-width: 610px) {
    .div-header {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .user-container {
        margin-top: 4rem;
        margin-bottom: 4rem;
        padding: 0 1rem;
    }

    .users-table-container {
        max-width: 100vw;
        width: 100%;
        padding: 1rem;
        margin-top: 30px;
        margin-bottom: 100px;
        border-radius: 8px;
        background: #f9f9f9;
        box-sizing: border-box;
    }
    .user-search-bar{
        width:200px;
    }
    .filter{
        width: 50px;
    }
    
    .filter-options {
        position: absolute;
        top: 40px; /* Adjust based on icon/button height */
        left: 0px; /* Adjust to align under your filter icon */
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        min-width: 260px;
        font-family: 'Segoe UI', Tahoma, sans-serif;
        z-index: 100;
    }
    .search-btn-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group-wrapper {
        margin-left: 0;
        justify-content: center;
    }

}

/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
@media (max-width: 900px) {
    .user-details-modal {
        width: 97vw;
        min-width: unset;
        padding: 18px;
    }
    .user-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


.form-grid {
    display: grid;
    gap: 1rem 2rem;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

@media(max-width:500px){
    .form-group {
        display: flex;
        flex-direction: column;
        width:100%;
    }
}

.form-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}




.btn-cancel {
    background: #eee;
    color: #666;
    font-weight: bold;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
}
.btn-cancel:hover {
    background: #555;
}
.modal-content.delete-modal {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    min-width: 320px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    text-align: center;
}
.modal-actions {
    margin-top: -0.7rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.event-btns {
    display: flex;
    justify-content: space-between; /* Pushes items to opposite ends */
    align-items: center;          /* Keeps them vertically aligned */
    margin-top: 1.5rem;
}

/* Container for the right-side buttons */
.event-modal-action {
    display: flex;
    gap: 0.5rem; /* Adds a small space between Edit and Delete */
}

.btn-confirm {
    background: #FBC46C;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
}
.btn-cancel {
    background: #666;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
}
.app-loading {
    position: fixed;
    inset: 0;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: visible;
}

.app-loading.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

@media(max-width: 768px){
    .edit-btn, .delete-btn{
    
        background-color: #FBC46C;
        color: white;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 700;
        font-size: 0.9rem;
        transition: background-color 0.3s ease;
    }

    .edit-btn:hover, .delete-btn:hover {
        background-color: #ffb744;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-screen.remove {
    display: none;
}

#loading-screen.show {
    opacity: 1;
    pointer-events: auto;
}

.spinner-border {
    color: #BF2A52;
}

.dz-root {
    position: relative;
    border: 2px dashed #b6b6b6;
    border-radius: 12px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .dz-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  .dz-placeholder {
    color: #888;
    font-size: 0.95rem;
    text-align: center;
    pointer-events: none;
  }
  .dz-preview {
    max-height: 170px;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
  }

  .dz-root {
    position: relative;
    transition: all 0.3s ease;
}

.dz-dragging {
    border-color: blue !important;
    background-color: rgba(0, 0, 255, 0.05);
}

.dz-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.validation-summary {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

.text-danger {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}



    .drop-zone {
        border: 2px dashed #ccc;
        border-radius: 5px;
        padding: 20px;
        text-align: center;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: all 0.3s;
    }

    .drag-active {
        border-color: #007bff;
        background-color: rgba(0, 123, 255, 0.05);
    }

    .image-preview {
        position: relative;
        max-width: 100%;
    }

    .image-preview img {
        max-height: 200px;
        max-width: 100%;
        border-radius: 4px;
    }

    .delete-button {
        position: absolute;
        top: -10px;
        right: -10px;
        background: #ff4444;
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        font-size: 12px;
        cursor: pointer;
    }

    .loading-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .upload-instructions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .upload-instructions i {
        font-size: 2rem;
        color: #007bff;
    }

    .service-image img{ 
        max-width:50%; 
        height:auto; 
        border-radius:10px; 
        background:#fff;
        padding:1rem; 
        width:100px; 
    }
    
    .zoom-modal img {
        transition: transform 0.3s ease;
        cursor: zoom-out;
    }


/* Search and Filter Section */


.user-search-bar:focus {
    border-color: #BF2A52;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.user-search-bar::placeholder {
    color: #94a3b8;
}

.fa-filter {
    color: #64748b;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fa-filter:hover {
    background: #f1f5f9;
    color: #334155;
}

.filter {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.3s ease;
}

.filter:focus {
    border-color: #007BFF;
    outline: none;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #444;
}


/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.2s ease;
}


.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@media (max-width: 600px) {

    .modal-content {
    max-width: 99vw;       /* Maximum width 95% of viewport */
    width: 100vw;           /* Always scale down to viewport width */
    max-height: 90vh;      /* Max height 90% of viewport */
    overflow-y: auto;      /* Scroll vertically if content is too tall */
    overflow-x: auto;    /* Prevent horizontal scroll */
    box-sizing: border-box; /* Include padding in width */
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Stack children vertically */
}
}

/* User Details Modal */
.user-details-modal {
    width: 600px;
    padding: 0;
}

.modal-header {
    margin-top: 1rem;
    color: white;
    padding: 24px 32px;
    border-radius: 20px 20px 0 0;
    position: relative;
    margin-right:1rem;
    margin-left:1rem;
}

.user-details-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.user-detail img{
    width:100%;
    height:100%;
}

.user-details-role {
    text-align: center;
    color: #64748b;
    margin: 20px 0;
    font-weight: 600;
    font-size: 16px;
}

.user-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 32px 32px;
}

.user-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-detail label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.user-detail span {
    font-size: 14px;
    color: #1e293b;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.user-event-ids {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.event-id-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.no-events-box {
    margin: 4rem auto;
    padding: 2rem;
    max-width: 500px;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-events-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffc107; 
}

.no-events-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: black;
    margin: 0;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}

.users-table thead {
    background-color: #f6f8fa;
}

.users-table thead th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    background-color: #BF2A52;
    color: white;
    border-bottom: 1px solid #ddd;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.users-table tbody tr {
    transition: background-color 0.2s ease;
}

.users-table tbody tr:hover {
    background-color: #f9f9f9;
}

.users-table td {
    padding: 0.8rem;
    text-align: center;
    color: black;
    vertical-align: middle;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}





