/**
 * Event Exhibitor Manager — Exhibitor Portal Styles
 */

/* ─── Portal Container ─── */
.eem-portal { max-width: 1100px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #333; }
.eem-portal * { box-sizing: border-box; }

/* ─── Gate (login / access denied) ─── */
.eem-portal-gate { text-align: center; padding: 60px 20px; background: #f8f9fa; border-radius: 12px; margin: 20px 0; }
.eem-portal-gate h2 { color: #1a5c2a; margin-bottom: 10px; }
.eem-portal-gate a { color: #1a5c2a; font-weight: 600; }

/* ─── Header ─── */
.eem-portal-header { background: linear-gradient(135deg, #1a5c2a 0%, #2d8a47 100%); color: white; padding: 30px; border-radius: 12px 12px 0 0; }
.eem-portal-header h1 { margin: 0 0 5px; font-size: 28px; }
.eem-portal-welcome { margin: 0; opacity: 0.9; font-size: 15px; }

/* ─── Navigation Tabs ─── */
.eem-portal-nav { display: flex; flex-wrap: wrap; background: #fff; border-bottom: 2px solid #e9ecef; }
.eem-portal-tab { padding: 14px 20px; text-decoration: none; color: #666; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; transition: all 0.2s; }
.eem-portal-tab:hover { color: #1a5c2a; background: #f8f9fa; }
.eem-portal-tab.eem-tab-active { color: #1a5c2a; border-bottom-color: #1a5c2a; background: #f0faf3; }

/* ─── Content ─── */
.eem-portal-content { padding: 20px 0; }

/* ─── Cards ─── */
.eem-card { background: #fff; border-radius: 10px; padding: 24px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border: 1px solid #e9ecef; }
.eem-card h2 { margin-top: 0; color: #1a5c2a; font-size: 22px; }
.eem-card h3 { margin-top: 0; color: #333; font-size: 18px; }
.eem-card h4 { margin: 16px 0 8px; color: #555; font-size: 15px; }
.eem-card-full { width: 100%; }
.eem-card-warning { background: #fff3cd; border-color: #ffc107; }
.eem-card-warning p { margin: 0; color: #856404; }
.eem-card-highlight { background: linear-gradient(135deg, #f0faf3 0%, #e8f5ec 100%); border-color: #1a5c2a; }

/* ─── Grid Layouts ─── */
.eem-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.eem-dashboard-grid .eem-card-full { grid-column: 1 / -1; }
.eem-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 768px) {
    .eem-dashboard-grid, .eem-info-grid { grid-template-columns: 1fr; }
    .eem-portal-nav { overflow-x: auto; flex-wrap: nowrap; }
    .eem-portal-tab { white-space: nowrap; font-size: 13px; padding: 12px 14px; }
}

/* ─── Progress Bar ─── */
.eem-progress-bar { width: 100%; height: 16px; background: #e9ecef; border-radius: 10px; overflow: hidden; margin: 10px 0; }
.eem-progress-fill { height: 100%; background: linear-gradient(to right, #1a5c2a, #2d8a47); border-radius: 10px; transition: width 0.5s ease; }
.eem-progress-green { background: linear-gradient(to right, #28a745, #20c997); }
.eem-progress-text { color: #666; font-size: 14px; }

/* ─── Info Rows ─── */
.eem-info-row { padding: 6px 0; font-size: 14px; }
.eem-info-row strong { color: #555; min-width: 120px; display: inline-block; }

/* ─── Timeline ─── */
.eem-timeline { padding: 0; }
.eem-timeline-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.eem-timeline-item:last-child { border-bottom: none; }
.eem-timeline-date { min-width: 90px; font-weight: 600; color: #1a5c2a; font-size: 13px; }
.eem-timeline-highlight { background: #f0faf3; padding: 8px 10px; border-radius: 6px; margin: 2px -10px; }

/* ─── Buttons ─── */
.eem-btn { display: inline-block; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; }
.eem-btn-primary { background: #1a5c2a; color: white; }
.eem-btn-primary:hover { background: #155722; color: white; }
.eem-btn-small { padding: 6px 14px; font-size: 12px; }
.eem-btn-danger { background: #dc3545; color: white; }
.eem-btn-danger:hover { background: #c82333; color: white; }

/* ─── Badges ─── */
.eem-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.eem-badge-required { background: #fff3cd; color: #856404; }
.eem-badge-approved { background: #d4edda; color: #155724; }
.eem-badge-pending { background: #cce5ff; color: #004085; }
.eem-badge-rejected { background: #f8d7da; color: #721c24; }

/* ─── Tables ─── */
.eem-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.eem-table th { background: #f8f9fa; padding: 10px 14px; text-align: left; font-size: 13px; color: #555; border-bottom: 2px solid #dee2e6; }
.eem-table td { padding: 10px 14px; border-bottom: 1px solid #eee; font-size: 14px; }
.eem-table tr:hover { background: #f8f9fa; }
.eem-table code { background: #e9ecef; padding: 3px 8px; border-radius: 4px; font-size: 13px; font-weight: 600; }

/* ─── Forms ─── */
.eem-input { width: 100%; padding: 10px 14px; border: 1px solid #ced4da; border-radius: 6px; font-size: 14px; margin-bottom: 8px; font-family: inherit; }
.eem-input:focus { border-color: #1a5c2a; outline: none; box-shadow: 0 0 0 3px rgba(26,92,42,0.15); }
textarea.eem-input { resize: vertical; }
select.eem-input { background: white; }

.eem-form-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.eem-form-row .eem-input { flex: 1; min-width: 150px; }
.eem-form-row .eem-btn { flex-shrink: 0; margin-bottom: 8px; align-self: flex-start; }

/* ─── Document Upload ─── */
.eem-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .eem-upload-grid { grid-template-columns: 1fr; } }

.eem-upload-card { border: 2px solid #e9ecef; border-radius: 10px; padding: 18px; transition: border-color 0.2s; }
.eem-upload-required { border-color: #ffc107; }
.eem-upload-complete { border-color: #28a745; background: #f8fff8; }
.eem-upload-optional { border-color: #e9ecef; }

.eem-upload-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.eem-upload-header h4 { margin: 0 0 4px; font-size: 15px; }
.eem-upload-header p { margin: 0; font-size: 13px; color: #666; }
.eem-upload-header small { font-size: 12px; color: #888; }
.eem-upload-status { font-size: 24px; }

.eem-upload-file { background: #f0faf3; border: 1px solid #c3e6cb; padding: 12px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.eem-upload-actions { display: flex; gap: 8px; align-items: center; }

.eem-file-input { font-size: 13px; }

/* ─── Document Downloads ─── */
.eem-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 768px) { .eem-doc-grid { grid-template-columns: 1fr; } }
.eem-doc-download { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #f8f9fa; border-radius: 6px; border: 1px solid #e9ecef; }

/* ─── Checklist ─── */
.eem-checklist { padding: 0; }
.eem-checklist-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.eem-checklist-item:hover { background: #f8f9fa; }
.eem-checklist-checkbox { width: 20px; height: 20px; accent-color: #1a5c2a; }
.eem-checklist-label { font-size: 15px; }
.eem-checked { text-decoration: line-through; color: #999; }

/* ─── Pass Form ─── */
.eem-pass-form { background: #f8f9fa; padding: 16px; border-radius: 8px; margin-top: 16px; }
.eem-pass-form h4 { margin: 0 0 12px; font-size: 14px; color: #555; }

/* ─── Meeting Requests ─── */
.eem-meeting-item { padding: 12px; background: #f8f9fa; border-left: 3px solid #1a5c2a; margin-bottom: 8px; border-radius: 0 6px 6px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eem-meeting-item small { color: #888; }

/* ─── Noticeboard ─── */
.eem-notice-form { margin-bottom: 16px; }
.eem-notice-form .eem-form-row { margin-bottom: 8px; }
.eem-notice-form select { max-width: 180px; }

.eem-notice-item { padding: 16px; border: 1px solid #e9ecef; border-radius: 8px; margin-bottom: 12px; }
.eem-notice-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.eem-notice-type-badge { background: #e9ecef; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.eem-notice-meta { font-size: 12px; color: #888; }
.eem-notice-item p { margin: 0; color: #555; font-size: 14px; line-height: 1.5; }

/* ─── Loading State ─── */
.eem-loading { opacity: 0.6; pointer-events: none; }
