/* =================== RESET & BASE STYLES =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =================== HEADER =================== */
.header, .main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 20px 0;
    margin-bottom: 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #4299e1;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    color: #2d3748;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.login-options {
    display: flex;
    gap: 10px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(26,35,126,0.08);
    transition: background 0.2s;
}

.speaker-login-btn {
    background: #fff;
    color: #1a237e;
}

.admin-login-btn {
    background: #3949ab;
    color: #fff;
}

.login-btn:hover {
    opacity: 0.92;
}

/* =================== MAIN CONTENT =================== */
.main {
    padding-bottom: 60px;
}

.hall-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
    padding: 0 6px;
}

.hall-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    padding: 16px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hall-btn.active {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border-color: #2b6cb0;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.18);
}

.capacity {
    display: block;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 5px;
}

/* =================== SCHEDULE CONTAINER =================== */
.schedule-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 24px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-hall h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 6px;
    font-weight: 800;
}

.current-hall p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* =================== DAY TABS =================== */
.day-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #4a5568;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
}

.day-tab.active {
    color: #2b6cb0;
    border-bottom-color: #4299e1;
    background: rgba(66, 153, 225, 0.10);
    font-weight: 700;
}

/* =================== SCHEDULE GRID =================== */
.schedule-grid {
    display: grid;
    gap: 14px;
}

.time-slot {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 5px solid #4299e1;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.time-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.time-range {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 4px;
}

.slot-name {
    font-size: 0.93rem;
    color: #4a5568;
    font-weight: 500;
    background: rgba(66, 153, 225, 0.08);
    padding: 3px 10px;
    border-radius: 16px;
}

.speaker-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.speaker-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
    cursor: pointer;
    transition: color 0.2s;
}

.speaker-name:hover {
    color: #3182ce;
}

.speaker-title {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.session-title {
    color: #2b6cb0;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-style: italic;
}

.speaker-meta {
    display: flex;
    gap: 10px;
    font-size: 0.93rem;
    color: #718096;
    flex-wrap: wrap;
}

.speaker-meta span {
    background: rgba(113, 128, 150, 0.08);
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* =================== LOADING & ERROR STATES =================== */
.loading {
    text-align: center;
    padding: 60px 10px;
    color: white;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 18px;
}

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

.error {
    text-align: center;
    padding: 40px 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.error-content h3 {
    color: #e53e3e;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.error-content p {
    color: #4a5568;
    margin-bottom: 12px;
}

.retry-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.hidden {
    display: none !important;
}

/* =================== MODAL STYLES =================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 24px 12px;
    border-radius: 14px;
    max-width: 500px;
    width: 96vw;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    cursor: pointer;
    color: #718096;
    transition: color 0.2s;
    background: #f7fafc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close:hover {
    color: #e53e3e;
    background: #fed7d7;
    transform: rotate(90deg);
}

.speaker-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.speaker-details h3 {
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 700;
}

.speaker-code {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: monospace;
}

.speaker-position {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.speaker-bio, .speaker-contact, .speaker-sessions {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.speaker-bio h4, .speaker-contact h4, .speaker-sessions h4 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.speaker-bio p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.97rem;
}

.speaker-contact p {
    margin-bottom: 7px;
    font-family: 'Courier New', monospace;
    font-size: 0.97rem;
    color: #2d3748;
}

.speaker-sessions-list {
    display: grid;
    gap: 7px;
}

.session-item {
    background: #f7fafc;
    padding: 10px;
    border-radius: 7px;
    border-left: 3px solid #4299e1;
}

.session-item strong {
    color: #2d3748;
    display: block;
    margin-bottom: 3px;
}

.session-item span {
    color: #4a5568;
    font-size: 0.9rem;
}

/* =================== STATS BAR =================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 2px solid #e2e8f0;
}

.stat {
    text-align: center;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #2b6cb0;
    margin-bottom: 2px;
}

.stat-label {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================== EMPTY STATE =================== */
.empty-state {
    text-align: center;
    padding: 40px 10px;
    color: #4a5568;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 10px;
    border: 2px dashed #cbd5e0;
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2d3748;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* =================== FOOTER =================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 10px 0 6px 0;
    text-align: center;
    color: #4a5568;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.07);
    border-top: 1.5px solid #e2e8f0;
    font-size: 0.98rem;
    z-index: 100;
}

/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 900px) {
    .container {
        padding: 0 6px;
    }
    .header-content {
        flex-direction: column;
        gap: 10px;
        padding: 14px 4px;
    }
    .main-header {
        padding: 14px 0;
    }
}

@media (max-width: 700px) {
    .main {
        padding-bottom: 80px;
    }
    .container {
        padding: 0 2px;
    }
    .header-content {
        flex-direction: column;
        gap: 8px;
        padding: 10px 2px;
    }
    .main-header {
        padding: 10px 0;
    }
    .hall-nav {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .schedule-container {
        padding: 10px 4px;
    }
    .stats-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .footer {
        font-size: 0.93rem;
        padding: 7px 0 4px 0;
    }
    .modal-content {
        padding: 12px 4px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 7px 0;
    }
    .footer {
        font-size: 0.89rem;
        padding: 5px 0 2px 0;
    }
}

/* =================== SPEAKERS DIRECTORY =================== */
/* --- Modern Speakers Directory Grid --- */
.speakers-directory {
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 32px 24px 28px 24px;
    margin: 36px auto 28px auto;
    max-width: 1200px;
    width: 98%;
}

.speakers-directory h2 {
    font-size: 2rem;
    color: #1a237e;
    margin-bottom: 24px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 1px;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.speaker-card-dir {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(66,153,225,0.10);
    padding: 1.3rem 1.1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
    border: 1.5px solid #e3e9f7;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
}

.speaker-card-dir:hover {
    box-shadow: 0 8px 32px rgba(66,153,225,0.18);
    transform: translateY(-2px) scale(1.025);
    border-color: #3949ab;
}

.speaker-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
}

.speaker-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: #1a237e;
    letter-spacing: 0.2px;
}

.speaker-code {
    background: #3949ab;
    color: #fff;
    font-size: 0.89rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: monospace;
    font-weight: 600;
    opacity: 0.85;
    margin-left: 8px;
}

.speaker-title {
    color: #3949ab;
    font-size: 1.01rem;
    font-weight: 500;
}

.speaker-meta {
    color: #607d8b;
    font-size: 0.97rem;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.speaker-bio {
    color: #444;
    font-size: 0.97rem;
    margin-top: 6px;
    line-height: 1.5;
    max-height: 3.7em;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    width: 100%;
    word-break: break-word;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .speakers-directory {
        padding: 18px 6px 14px 6px;
        margin: 18px 0 12px 0;
    }
    .speakers-grid {
        gap: 14px;
    }
}

@media (max-width: 700px) {
    .speakers-directory h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    .speakers-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .speaker-card-dir {
        padding: 0.9rem 0.7rem 0.8rem 0.7rem;
    }
}

/* Responsive header for Summit Hub */
.main-header {
    background: linear-gradient(90deg, #1a237e 60%, #3949ab 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 32px;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    flex-wrap: wrap;
}
.conference-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.project-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.project-details {
    margin: 0;
    font-size: 1rem;
    color: #c5cae9;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.login-options {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.login-btn {
    background: #fff;
    color: #1a237e;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(26,35,126,0.08);
    cursor: pointer;
    transition: background 0.2s;
}
.admin-login-btn {
    background: #3949ab;
    color: #fff;
}
.login-icon {
    font-size: 1.2rem;
    margin-right: 7px;
}

/* Mobile styles */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 8px;
    }
    .login-options {
        width: 100%;
        justify-content: flex-start;
        margin-top: 16px;
    }
    .project-title {
        font-size: 1.35rem;
    }
    .project-details {
        font-size: 0.95rem;
        gap: 7px;
    }
    .login-btn, .admin-login-btn {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 8px;
    }
}