/* FULL RESTORED CSS + FIXES */

:root {
    --primary: #1a237e;
    --primary-light: #534bae;
    --primary-dark: #000051;
    --accent: #ffb300;
    --accent-hover: #ffca28;
    --bg-body: #f8f9fa;
    --surface: #ffffff;
    --text-main: #37474f;
    --text-light: #78909c;
    --border: #eceff1;

    --radius: 16px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --success: #00c853;
    --success-bg: #e8f5e9;
    --warning: #ff9800;
    --warning-bg: #fff3e0;
    --danger: #d32f2f;
    --danger-bg: #ffebee;
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding-top: 60px;
    /* Space for fixed nav */
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
    pointer-events: none; /* Safety: Never block clicks forever */
}

/* Re-enable pointer events only when active/visible if needed, but actually we want it to block interaction UNTIL loaded. 
   However, "Blank Page" usually means it IS stuck. 
   Let's just force it to hide in the HTML style block for this specific page to be super safe? 
   No, I'll stick to CSS modification here. */
#preloader.active {
    pointer-events: all;
}

body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-circle {
    position: absolute;
    inset: 0;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
}

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

/* CANVAS BG */
#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.nav-links li a:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
        transform: translateY(-10px);
        opacity: 0;
        transition: 0.3s;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li a {
        padding: 0.8rem 0;
        border-bottom: 1px solid #eee;
    }
}

/* LAYOUT */
.container.full-width {
    max-width: 1400px;
    padding: 2rem;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container.full-width {
        padding: 1rem;
    }
}

/* HEADER */
.conference-header {
    background: white;
    border-radius: var(--radius);
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--accent);
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.logo-box {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-logo-box {
    width: 140px;
    height: 140px;
}

.conf-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.conf-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--primary-dark);
    margin: 0.5rem 0;
    line-height: 1.1;
}

.conf-desc {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.conf-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    flex-wrap: wrap;
}

.conf-date-badge {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

/* TIMER */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.time-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-box {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.time-box span {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    font-weight: 600;
    text-align: center;
}

/* DASHBOARD */
.glass-panel {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid white;
}

.section-header h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    padding-top: 4px;
}

.stat-card.success {
    border-left: 4px solid var(--success);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.charts-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.chart-container.wide {
    flex: 2;
    min-width: 400px;
}

/* DASHBOARD (Restored) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Force 4 columns on desktop */
    }
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8eaf6;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    min-width: 0;
    /* Fix flex overflow */
}

.stat-info h4 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-info .count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

/* PROGRESS BAR */
.progress-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.progress-track {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #69f0ae);
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* SEARCH & TABLE */
.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-light);
}

.search-input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.abstracts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.abstracts-table th {
    text-align: left;
    padding: 1rem;
    background: #f1f3f5;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.abstracts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.abstracts-table tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

/* Clickable table author */
.table-author-link {
    cursor: pointer;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.table-author-link:hover {
    color: var(--primary);
    border-bottom-style: solid;
}


@media (max-width: 768px) {
    .abstracts-table thead {
        display: none;
    }

    .abstracts-table,
    tbody,
    tr,
    td {
        display: block;
    }

    .abstracts-table tr {
        background: white;
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
        padding: 1rem;
    }

    .abstracts-table td {
        padding: 0.5rem 0;
        border: none;
        display: flex;
        justify-content: space-between;
        text-align: right;
    }

    .abstracts-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-light);
        text-align: left;
        margin-right: 1rem;
    }

    .abstracts-table td:nth-child(1) {
        font-weight: 700;
        color: var(--primary);
        font-family: 'Cinzel';
    }

    /* ID */
}

/* MODALS */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header-bg {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 2rem;
    color: white;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.modal-header-bg h2 {
    color: white !important;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* FIX CONTRAST */

.secondary-header {
    background: linear-gradient(135deg, #455a64, #263238);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.participant-photo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 4px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    color: var(--text-light);
}

.detail-value {
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    max-width: 60%;
}

.highlight-value {
    color: var(--primary);
    font-weight: 700;
    background: #e8eaf6;
    padding: 2px 8px;
    border-radius: 4px;
}

.text-muted {
    color: #999;
}

.bio-text {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* LISTS */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.topic-item,
.author-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    min-height: 80px;
    /* fix cut off */
}

.topic-item:hover,
.author-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.topic-count {
    background: #e3f2fd;
    color: #1565c0;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
}

.topic-name {
    line-height: 1.3;
    font-weight: 500;
    font-size: 0.95rem;
    padding-right: 0.5rem;
}


/* PROFILE LIST */
.profile-papers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-paper-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

.profile-paper-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.pp-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.pp-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
}

/* ADMIN */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 100;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-controls {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 99;
}

.admin-fab {
    position: static;
    width: 45px;
    height: 45px;
    font-size: 1rem;
}

/* Author Chip */
.author-chip {
    display: inline-flex;
    align-items: center;
    background: #e0f7fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-right: 4px;
    cursor: pointer;
    color: #006064;
    border: 1px solid #b2ebf2;
    transition: 0.2s;
    margin-bottom: 4px;
}

.author-chip:hover {
    background: #b2ebf2;
}

.author-link {
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

/* SCHEDULE VEDIC STYLE */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 0;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 179, 0, 0.3);
    z-index: 2;
    font-size: 1.2rem;
}

.t-date {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 4px;
}

.t-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

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

.t-card::after {
    content: '🕉️';
    position: absolute;
    right: -10px;
    bottom: -15px;
    font-size: 6rem;
    opacity: 0.05;
    pointer-events: none;
    filter: grayscale(100%);
}

.t-time {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.5px;
}

.t-event {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.t-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    line-height: 1.5;
}


/* FOOTER */
.site-footer {
    background: linear-gradient(to bottom, #263238, #1a237e);
    color: white;
    padding: 4rem 1rem;
    margin-top: 5rem;
    border-top: 6px solid var(--accent);
    text-align: center;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.footer-links {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: #b0bec5;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
    color: var(--accent);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.4);
}

/* Full Paper Indicator */
.icon-received {
    font-size: 1.2rem;
    color: var(--success);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.icon-pending {
    font-size: 1.2rem;
    color: #bdbdbd;
    margin-left: 0.5rem;
    vertical-align: middle;
    opacity: 0.5;
}

/* THEME BOX HEIGHT FIX */
.topic-item {
    min-height: 100px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.topic-name {
    margin-bottom: auto;
    line-height: 1.4;
    padding-right: 0;
}

.topic-count {
    align-self: flex-end;
    margin-top: 0.5rem;
}

/* MODERN TIMELINE */
.timeline-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1rem;
}

.timeline-row {
    display: flex;
    gap: 2rem;
}

.t-time-col {
    min-width: 120px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.t-day-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.t-date-text {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.t-content-col {
    flex: 1;
    border-left: 2px dashed var(--border);
    padding-left: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.t-content-col:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--accent);
}

.t-card-modern {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.t-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.t-card-modern.highlight {
    background: #fff8e1;
    border-color: #ffca28;
}

.t-time-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: white;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.t-card-modern h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-main);
    font-size: 1.1rem;
}

.t-card-modern p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .timeline-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .t-time-col {
        align-items: flex-start;
        text-align: left;
        flex-direction: row;
        gap: 1rem;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .t-content-col {
        border-left: 2px solid var(--border);
        padding-left: 1rem;
        margin-left: 1rem;
    }
}

/* MOBILE DASHBOARD & CHART FIXES */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns instead of stack */
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        min-height: 100px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .stat-info h4 {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-info .count {
        font-size: 1.4rem;
    }

    /* Ensure charts don't overflow */
    .chart-container,
    .chart-container.wide {
        height: 250px;
        padding: 0.5rem;
        min-width: 0 !important;
        /* Fixed: Prevent scroll */
        flex: 1 1 100%;
    }
}

/* SMALL MOBILE FIXES (320px - 480px) */
@media (max-width: 480px) {

    /* FORCE 2 COLUMNS */
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem;
    }

    /* 1. Logos: One line, smaller */
    .logo-row {
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-evenly;
        margin-bottom: 1rem;
    }

    .logo-box {
        width: 50px;
        height: 50px;
    }

    .main-logo-box {
        width: 70px;
        height: 70px;
    }

    /* 2. Font Sizes */
    .conf-title {
        font-size: 1.5rem;
        /* Reduced from 3rem */
    }

    .conf-desc {
        font-size: 0.9rem;
    }

    /* 3. Dashboard Adjustments */
    .dashboard-grid {
        gap: 0.5rem;
    }

    .stat-card {
        padding: 0.5rem;
        /* Tighter padding */
        min-height: 80px;
    }

    .stat-info .count {
        font-size: 1.2rem;
    }

    /* 4. Timer Adjustment */
    .countdown-container {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .time-box {
        width: 50px;
        height: 50px;
        margin-bottom: 0.2rem;
    }

    .time-box span {
        font-size: 1.2rem;
    }

    .time-label {
        font-size: 0.6rem;
    }
}

/* MOBILE TABLE CENTERED LAYOUT (User Request) */
@media (max-width: 768px) {
    .abstracts-table td {
        display: flex;
        flex-direction: column;
        /* Stack Label & Value */
        align-items: center;
        text-align: center;
        justify-content: center;
        padding: 1rem 0.5rem;
    }

    .abstracts-table td:before {
        margin-right: 0;
        margin-bottom: 0.3rem;
        font-size: 0.8rem;
        text-transform: uppercase;
        color: var(--primary);
        opacity: 0.7;
    }

    /* 4. Fix Author Scrolling */
    /* 4. Fix Author Scrolling */
    .abstracts-table td[data-label="Authors"] {
        white-space: normal;
        word-wrap: break-word;
        max-height: 100px;
        /* Reduced to avoid taking too much space */
        overflow-y: auto;
    }
}

/* END MOBILE MEDIA QUERY */

.bookmark-btn {
    cursor: pointer;
    color: #ccc;
    font-size: 1rem;
    transition: 0.2s;
}

.bookmark-btn.fas {
    color: var(--accent);
    /* Gold star */
}

.bookmarked-row {
    background-color: #fff8e1 !important;
    /* Slight highlight */
}

/* DELEGATE CARD */
.delegate-badge {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.delegate-badge::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.badge-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.badge-photo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.badge-info h3 {
    width: 100%;
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.badge-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.badge-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-qr {
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #333;
}

.badge-details {
    text-align: right;
    font-size: 0.9rem;
}

.badge-status {
    background: #00c853;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.btn-desk-action.kit.active {
    background: #2979ff;
}

/* =========================================
   SCHEDULE TABS & NEW TIMELINE
   ========================================= */
.schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3);
}

.day-content {
    animation: fadeIn 0.5s ease;
}

.t-card-modern {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    position: relative;
    transition: transform 0.2s;
}

.t-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.t-card-modern.highlight {
    border-left-color: var(--accent);
    background: #fff8e1;
}

.t-time-pill {
    display: inline-block;
    background: #e8eaf6;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.t-card-modern h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.t-card-modern p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ADMIN TOGGLE ANIAMTION */
#adminToggle:hover {
    opacity: 1 !important;
    background: red;
}

/* ADMIN FLOATING BUTTONS */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: transform 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.admin-fab {
    /* Additional styling if needed */
}