/* ticketwindow.css */

/* You can add global styles to this file, and also import other style files */

.auth-card {
    max-width: 450px;
    margin: 4rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
}

.auth-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

.field-validation-error {
    color: #dc2626; /* red-600 */
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


.validation-summary-errors {
    background-color: #fef2f2; /* red-50 */
    color: #dc2626; /* red-600 */
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #fecaca; /* red-300 */
}

    .validation-summary-errors ul {
        list-style: none;
        padding: 0;
    }

    .validation-summary-errors li {
        margin-bottom: 0.25rem;
    }

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
    display: none; /* Hidden by default */
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 101;
    max-width: 500px;
    width: 90%;
    display: none; /* Hidden by default */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .modal-header h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #111827;
    }

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Alert Component */
.alert i {
    font-size: 1.2rem;
}

/* Dashboard & Tables */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e7eb;
}

.stat-icon {
    font-size: 1.75rem;
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h4 {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-info p {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
}

.icon-sales {
    background-color: #e0f2fe; /* sky-100 */
    color: #0369a1; /* sky-700 */
}

.icon-tickets {
    background-color: #dcfce7; /* green-100 */
    color: #15803d; /* green-700 */
}

.icon-events {
    background-color: #fef3c7; /* amber-100 */
    color: #b45309; /* amber-700 */
}

.icon-payout {
    background-color: #ede9fe; /* violet-100 */
    color: #6d28d9; /* violet-700 */
}

.table-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow-x: auto;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

thead {
    background-color: #f9fafb;
}

th {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:hover {
    background-color: #f9fafb;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef9c3;
    color: #854d0e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-archived {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* Event Details Page */
.event-details-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.event-details-card .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.event-details-card .card-body {
    padding: 1.5rem;
}

.share-button {
    background-color: #FFEDD5; /* orange-100 */
    color: #9A3412; /* orange-700 */
}

.share-button:hover {
    background-color: #FED7AA; /* orange-200 */
}

.organizer-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.organizer-card .organizer-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #4B5563; /* gray-600 */
}

.organizer-card .organizer-body {
    padding: 1rem;
}

.organizer-card .organizer-name {
    color: #D97706; /* amber-600 */
}

.organizer-card .contact-button {
    background-color: #F59E0B; /* amber-500 */
    color: white;
}

.organizer-card .contact-button:hover {
    background-color: #D97706; /* amber-600 */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    /* General text and padding adjustments */
    body {
        padding-top: 56px; /* Adjust for fixed navbar height */
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }
}
