/* Event Review Page Styles - matching original */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
    margin-bottom: 30px;
}

/* Stats boxes */
.stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    flex: 1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.stat-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Table styles */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

table {
    max-width: 100%;
    width: max-content;
    min-width: 2000px;
    border-collapse: collapse;
    margin: 0;
}

th, td {
    padding: 8px 12px;
    text-align: left;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    white-space: nowrap;
    min-width: 100px;
}

/* Allow text wrapping for longer content fields */
th:nth-child(6), td:nth-child(6),   /* Description */
th:nth-child(8), td:nth-child(8),   /* Contact */
th:nth-child(16), td:nth-child(16), /* Website */
th:nth-child(19), td:nth-child(19), /* Tags */
th:nth-child(20), td:nth-child(20)  /* Coordinates */
{
    white-space: normal;
    word-wrap: break-word;
    max-width: 200px;
}

/* Specific column widths - Updated for QR Codes after Contact */
th:nth-child(1), td:nth-child(1) { min-width: 120px; } /* Flyer */
th:nth-child(2), td:nth-child(2) { min-width: 200px; } /* Event Title */
th:nth-child(3), td:nth-child(3) { min-width: 100px; } /* Date */
th:nth-child(4), td:nth-child(4) { min-width: 100px; } /* Time */
th:nth-child(5), td:nth-child(5) { min-width: 150px; } /* Venue */
th:nth-child(6), td:nth-child(6) { min-width: 200px; } /* Description */
th:nth-child(7), td:nth-child(7) { min-width: 80px; }  /* Price */
th:nth-child(8), td:nth-child(8) { min-width: 150px; } /* Contact */
th:nth-child(9), td:nth-child(9) { min-width: 130px; } /* QR Codes */
th:nth-child(10), td:nth-child(10) { min-width: 120px; } /* Category */
th:nth-child(11), td:nth-child(11) { min-width: 120px; } /* Event Type */
th:nth-child(12), td:nth-child(12) { min-width: 130px; } /* Target Audience */
th:nth-child(13), td:nth-child(13) { min-width: 130px; } /* Accessibility */
th:nth-child(14), td:nth-child(14) { min-width: 120px; } /* Booking Required */
th:nth-child(15), td:nth-child(15) { min-width: 150px; } /* Website */
th:nth-child(16), td:nth-child(16) { min-width: 130px; } /* Organizer */
th:nth-child(17), td:nth-child(17) { min-width: 80px; }  /* Capacity */
th:nth-child(18), td:nth-child(18) { min-width: 150px; } /* Tags */
th:nth-child(19), td:nth-child(19) { min-width: 150px; } /* Coordinates */
th:nth-child(20), td:nth-child(20) { min-width: 120px; } /* Recurring */
th:nth-child(21), td:nth-child(21) { min-width: 100px; } /* Provider */
th:nth-child(22), td:nth-child(22) { min-width: 100px; } /* Confidence */
th:nth-child(23), td:nth-child(23) { min-width: 120px; } /* Actions */

table th,
table thead th,
.table-container table th,
th {
    background: #667eea !important;
    background-color: #667eea !important;
    color: white !important;
    font-weight: bold !important;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Field highlighting styles */
.consensus-field {
    background-color: #e8f5e8 !important;
    border-left: 3px solid #28a745 !important;
}

.manually-selected-field {
    border: 2px solid #007bff !important;
    background-color: #e3f2fd !important;
}

.clickable-field {
    cursor: pointer;
    transition: border 0.2s ease;
}

.clickable-field:hover {
    border: 2px solid #ffc107 !important;
    background-color: #fff8e1 !important;
}

/* Validation warning styles */
.past-event {
    background-color: #ffebee !important;
    border-left: 3px solid #dc3545 !important;
}

.validation-warning {
    color: #dc3545;
    font-size: 11px;
    font-weight: bold;
}

.outside-slough {
    background-color: #fff3e0 !important;
    border-left: 3px solid #ff9800 !important;
}

/* Collapsible panel styles */
.field-controls-header {
    background: #667eea;
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.field-controls-header:hover {
    background: #5a6fd8;
}

.field-controls-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    border: 1px solid #667eea;
    border-top: none;
    display: none;
}

.field-controls-content.show {
    display: block;
}

.chevron {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.chevron.rotated {
    transform: rotate(180deg);
}

/* Flyer image */
.flyer-img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Confidence indicators */
.confidence {
    font-weight: bold;
}

.high-confidence { color: #28a745; }
.medium-confidence { color: #ffc107; }
.low-confidence { color: #dc3545; }

/* Buttons */
.btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn:hover {
    background: #5a6fd8;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* Provider tags */
.provider-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.provider-openai { background: #10a37f; color: white; }
.provider-haiku { background: #d97706; color: white; }
.provider-sonnet { background: #7c3aed; color: white; }
.provider-grok { background: #dc2626; color: white; }

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    max-height: 70%;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-close:hover {
    color: #333;
}

/* Action buttons in rows */
.action-buttons {
    white-space: nowrap;
}

.action-buttons button {
    margin: 2px;
}
