/* 
 * Style untuk Formulir Open House Transformasi Transmigrasi 24 Jam
 * Desain clean dan profesional dengan nuansa pemerintahan
 */

/* ========================================
   GLOBAL STYLES
   ======================================== */

:root {
    --primary-color: #0066cc;      /* Biru pemerintah modern */
    --primary-dark: #004999;
    --primary-light: #3385d6;
    --secondary-color: #00a86b;    /* Hijau aksen */
    --text-dark: #0b0c0c;          /* Gov.uk style */
    --text-gray: #505a5f;
    --text-light: #6f777b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #b1b4b6;
    --border-focus: #ffdd00;       /* Yellow focus for accessibility */
    --error-color: #d4351c;
    --success-color: #00703c;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 32px rgba(0,0,0,0.16);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    background: var(--bg-white);
    padding: 24px 0;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-placeholder {
    font-size: 48px;
    line-height: 1;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-text h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.header-text p {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    padding: 0 0 60px 0;
}

/* Event Info Section */
.event-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    box-shadow: var(--shadow-xl);
}

.event-header {
    text-align: center;
    margin-bottom: 24px;
}

.event-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.event-tagline {
    font-size: 18px;
    font-weight: 500;
    color: #fbbf24;
    margin: 0 0 16px 0;
}

.event-datetime {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.date-info, .time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 64, 175, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid rgba(30, 64, 175, 0.2);
    backdrop-filter: blur(10px);
}

.date-icon, .time-icon {
    font-size: 20px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.date-text, .time-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.event-description {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-description p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    color: white;
}

/* Disclaimer Box */
.disclaimer-box {
    background: #fff3cd;
    border: 3px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.disclaimer-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-content strong {
    display: block;
    font-size: 18px;
    color: #856404;
    margin-bottom: 8px;
    font-weight: 700;
}

.disclaimer-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #856404;
    margin: 0;
}

.disclaimer-content p strong {
    display: inline;
    font-size: inherit;
    color: #664d03;
    background: #fff9e6;
    padding: 2px 6px;
    border-radius: 3px;
}

.schedule-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.schedule-table-wrapper {
    background: white;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 32px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-dark);
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.schedule-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: none;
}

.schedule-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    vertical-align: top;
}

.schedule-table tbody tr {
    transition: all 0.3s ease;
}

.schedule-table tbody tr:hover {
    background: #f0f9ff;
    transform: scale(1.01);
}

.schedule-table tbody tr.grand-finale {
    background: #fef3c7;
}

.schedule-table tbody tr.grand-finale:hover {
    background: #fde68a;
}

.subtitle-text {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
}

.prize-column {
    background: #fbbf24 !important;
    color: var(--text-dark) !important;
}

.prize-cell {
    font-size: 15px;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.prize-cell.highlight {
    color: #dc2626;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.call-to-action {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.call-to-action h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.call-to-action p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

/* Social Media Section */
.social-media-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-media-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.social-header {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
}

.live-badge {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255,0,0,0.5);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.social-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.social-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    line-height: 1.5;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-btn {
    background: rgba(255,255,255,0.95);
    padding: 16px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    background: rgba(255,255,255,1);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tiktok-btn .social-icon {
    background: linear-gradient(135deg, #000000, #ee1d52, #69c9d0);
}

.instagram-btn .social-icon {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.youtube-btn .social-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon svg {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.social-btn:hover .social-icon {
    transform: rotate(360deg) scale(1.05);
}


.social-text {
    text-align: left;
    flex: 1;
}

.social-label {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 3px;
}

.social-handle {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.tiktok-btn .social-handle {
    color: #000000;
}

.instagram-btn .social-handle {
    background: linear-gradient(135deg, #833ab4, #fd1d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.youtube-btn .social-handle {
    color: #ff0000;
}

.social-footer {
    background: rgba(255,255,255,0.95);
    padding: 14px 20px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.social-footer p {
    font-size: 17px;
    color: var(--text-dark);
    margin: 0;
}

.social-footer strong {
    color: var(--primary-color);
}

.form-wrapper {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 48px;
    margin-bottom: 40px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.form-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 3px solid var(--primary-color);
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.form-header p {
    font-size: 19px;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.participant-form {
    width: 100%;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.required {
    color: var(--error-color);
    font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 19px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 4px solid var(--border-focus);
    outline-offset: 0;
    border-color: var(--text-dark);
    box-shadow: none;
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: var(--text-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

.form-group select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%230b0c0c" d="M8 11L3 6h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.5;
}

#wordCount {
    text-align: right;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

/* Checkbox Styling */
.checkbox-group {
    margin: 40px 0;
    padding: 24px;
    background: #f3f4f6;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 52px;
    user-select: none;
    min-height: 40px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    width: 40px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-label:hover input ~ .checkmark {
    border-color: var(--text-dark);
}

.checkbox-label input:focus ~ .checkmark {
    outline: 4px solid var(--border-focus);
    outline-offset: 0;
    border-color: var(--text-dark);
}

.checkbox-label input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 14px;
    top: 8px;
    width: 8px;
    height: 16px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 19px;
    color: var(--text-dark);
    line-height: 1.5;
    font-weight: 400;
    padding-top: 6px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    font-size: 19px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 0 #003078;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #00854d;
}

.btn-primary:focus:not(:disabled) {
    outline: 4px solid var(--border-focus);
    outline-offset: 0;
    background: #00854d;
}

.btn-primary:active:not(:disabled) {
    top: 2px;
    box-shadow: none;
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    box-shadow: none;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-secondary:focus {
    outline: 4px solid var(--border-focus);
    outline-offset: 0;
}

.btn-loader {
    display: none;
}

.btn-loader.active {
    display: inline;
}

.form-actions {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.form-actions button {
    width: 100%;
    position: relative;
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */

.success-message {
    text-align: center;
    padding: 60px 40px;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

.success-message h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.success-message p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.6;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 24px 0;
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    font-weight: 400;
}

.form-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* ========================================
   ADMIN PAGE STYLES
   ======================================== */

.admin-page {
    background: var(--bg-light);
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 48px;
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo-placeholder {
    font-size: 64px;
    margin-bottom: 16px;
}

.logo-img-admin {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-gray);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form button {
    width: 100%;
    margin-top: 8px;
}

/* Error Message */
.error-message {
    background: #fee2e2;
    color: var(--error-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.error-message.hidden {
    display: none;
}

/* Admin Dashboard */
.admin-dashboard {
    min-height: 100vh;
    background: var(--bg-light);
}

.admin-dashboard.hidden {
    display: none;
}

.admin-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    padding: 20px 0;
    margin-bottom: 32px;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.header-left p {
    font-size: 14px;
    color: var(--text-gray);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-email {
    font-size: 14px;
    color: var(--text-gray);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 40px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-gray);
}

/* Stats Cards - Variasi Warna */
.stat-card.stat-online .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-card.stat-offline .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.stat-card.stat-online {
    border-left: 4px solid #3b82f6;
}

.stat-card.stat-offline {
    border-left: 4px solid #8b5cf6;
}

/* Table Actions */
.table-actions {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.action-buttons button {
    padding: 10px 20px;
    font-size: 14px;
}

/* Data Table */
.table-container {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Custom scrollbar untuk desktop */
.table-container::-webkit-scrollbar {
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 12px 12px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #003078;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: var(--text-gray);
}

#tableWrapper.hidden {
    display: none;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1400px;
    table-layout: auto;
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.data-table tbody tr {
    transition: background 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.no-data.hidden {
    display: none;
}

/* ========================================
   UTILITIES
   ======================================== */

.hidden {
    display: none !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .event-info {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .event-header h2 {
        font-size: 24px;
    }

    .event-tagline {
        font-size: 16px;
    }

    .event-datetime {
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }

    .date-info, .time-info {
        padding: 10px 16px;
        gap: 6px;
    }

    .date-icon, .time-icon {
        font-size: 18px;
    }

    .date-text, .time-text {
        font-size: 14px;
    }

    .event-description {
        padding: 16px 20px;
    }

    .event-description p {
        font-size: 14px;
    }

    .schedule-section h3 {
        font-size: 20px;
    }

    .schedule-table-wrapper {
        padding: 12px;
    }

    .schedule-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        min-width: 800px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 12px 8px;
    }

    .call-to-action {
        padding: 24px 20px;
    }

    .cta-icon {
        font-size: 36px;
    }

    .call-to-action h3 {
        font-size: 20px;
    }

    .call-to-action p {
        font-size: 14px;
    }

    .social-media-section {
        padding: 28px 20px;
    }

    .social-header h3 {
        font-size: 22px;
    }

    .social-desc {
        font-size: 14px;
    }

    .social-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 100%;
    }

    .social-btn {
        padding: 14px 16px;
        gap: 10px;
    }

    .social-icon {
        width: 44px;
        height: 44px;
    }

    .social-label {
        font-size: 11px;
    }

    .social-handle {
        font-size: 14px;
    }

    .social-footer {
        max-width: 100%;
    }

    .social-footer p {
        font-size: 14px;
    }

    .disclaimer-box {
        flex-direction: column;
        padding: 16px;
    }

    .disclaimer-icon {
        font-size: 24px;
    }

    .disclaimer-content strong {
        font-size: 16px;
    }

    .disclaimer-content p {
        font-size: 14px;
    }

    .form-wrapper {
        padding: 24px;
        border-radius: 12px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .form-header p {
        font-size: 14px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .header-text p {
        font-size: 12px;
    }

    .logo-placeholder {
        font-size: 36px !important;
    }

    .logo-img {
        height: 45px;
    }

    .logo-img-admin {
        height: 60px;
    }

    .login-container {
        padding: 32px 24px;
    }

    .admin-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons button {
        width: 100%;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    /* Make table scrollable on mobile */
    .table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 1200px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-fluid {
        padding: 0 16px;
    }

    .form-wrapper {
        padding: 20px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

