/* General Layout Styles */

/* Containers */
.event-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}


/* Buttons */
.eventive-login a,
.view-barcode-button {
    display: block;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: var(--button-bg, #f9f9f9);
    color: var(--button-text, #333);
}

.eventive-login a:hover,
.view-barcode-button:hover {
    background-color: var(--hover-bg, #eaeaea);
    color: var(--hover-text, #000);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .event-group-items {
        flex-direction: column;
        align-items: center;
    }

    .view-barcode-button {
        width: 100%;
        margin-top: 10px;
    }
}

/* Eventive Checkout Table Styles */
.Eventive--OrderQuantitySelect table {
    background-color: #fff !important;
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 1em;
    color: rgb(33, 33, 33) !important;
}

.Eventive--OrderQuantitySelect thead {
    border-bottom: none !important;
}

.Eventive--OrderQuantitySelect thead tr {
    border-bottom: none !important;
}

.Eventive--OrderQuantitySelect tbody tr {
    border-bottom: 1px solid rgb(224, 224, 224) !important;
}

.Eventive--OrderQuantitySelect th,
.Eventive--OrderQuantitySelect td {
    padding: 8px; /* Add consistent padding */
    text-align: left;
    word-wrap: break-word;
}

/* Accessibility Improvements */
.eventive-login a,
.view-barcode-button {
    outline: none;
}

.eventive-login a:focus,
.view-barcode-button:focus {
    outline: 2px solid var(--focus-outline, #007acc);
    outline-offset: 2px;
}


/* Global Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay-bg, rgba(0, 0, 0, 0.8));
    overflow-y: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background-color 0.3s ease;
}

/* Modal Content */
.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    background: var(--modal-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--box-shadow-medium, 0 4px 10px rgba(0, 0, 0, 0.3));
    font-family: var(--font-family-base);
}

/* Small Modals (e.g., Edit Pass, Barcode) */
.modal-small {
    max-width: 500px;
    width: 90%;
    text-align: center;
}

/* Centered Modals */
.modal-centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: var(--font-size-h4);
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--hover-color);
}

/* Light & Dark Mode Variables */
.eventive-light-mode {
    --modal-bg: rgba(255, 255, 255, 0.98);
    --modal-overlay-bg: rgba(255, 255, 255, 0.9);
    --text-color: #1a1a1a;
    --border-color: #e6e6e6;
    --box-shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.eventive-dark-mode {
    --modal-bg: rgba(13, 17, 23, 0.95);
    --modal-overlay-bg: rgba(0, 0, 0, 0.85);
    --text-color: #c9d1d9;
    --border-color: #30363d;
    --box-shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.7);
}

/* Buttons inside Modals */
.modal-button {
    display: block;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: var(--button-bg, #f9f9f9);
    color: var(--button-text, #333);
}

.modal-button:hover {
    background-color: var(--hover-bg, #eaeaea);
    color: var(--hover-text, #000);
}

/* Accessibility Enhancements */
.modal-button:focus {
    outline: 2px solid var(--focus-outline, #007acc);
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-button {
        width: 100%;
        margin-top: 10px;
    }
}