:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-light: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a; /* Near Black */
    --text-dim: #334155;  /* Deep Slate 700 - Much darker than before */
    --glass-border: rgba(0, 0, 0, 0.1);
    --accent: #b45309;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Banner */
.banner-container {
    width: 100%;
    overflow: hidden;
}

.main-banner {
    width: 100%;
    height: auto;
    display: block;
}

header {
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.subtitle {
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.search-bar {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    padding: 5px 10px;
    font-size: 1rem;
    outline: none;
}

#search-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

#search-trigger:hover {
    color: var(--primary);
}

/* Tabs */
nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 25px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-dim);
}

.tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

/* Agenda Grid */
.slot {
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease;
}

.slot-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.slot-time::before, .slot-time::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent));
}

.slot-time::after {
    background: linear-gradient(to right, var(--accent), transparent);
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 800px;
    margin: 0 auto;
    gap: 20px;
    justify-content: center;
}

.session-card {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    position: relative;
    overflow: hidden;
}

/* Room Colors */
.session-card[data-room="Room A"] { border-top: 4px solid #60a5fa; }
.session-card[data-room="Room B"] { border-top: 4px solid #34d399; }
.session-card[data-room="Room C"] { border-top: 4px solid #f472b6; }
.session-card[data-room="Room D"] { border-top: 4px solid #fbbf24; }

.session-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.room-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.session-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.session-subinfo-container {
    margin-bottom: 15px;
}

.session-subinfo {
    font-size: 0.9rem;
    color: var(--text-main); /* Use main dark color for subinfo */
    font-weight: 500;
    margin-bottom: 4px;
}

.paper-count {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Paper List in Detail */
.paper-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.paper-item:hover {
    border-color: var(--primary);
}

.speaker-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.paper-title {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    margin-top: 5px;
}

.search-meta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.abstract-text {
    margin-top: 20px;
    color: var(--text-main);
    white-space: pre-line;
    font-weight: 300;
}

.affiliation {
    color: #4f46e5 !important; /* Force a clear indigo color */
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

#paper-info .paper-title {
    font-size: 1.1rem !important;
    color: #1e293b !important; /* Force Deep Slate 800 */
    font-weight: 600 !important;
    font-style: italic;
    line-height: 1.5;
    margin: 15px 0;
    display: block;
}

/* Utils */
.hidden { display: none; }

.back-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: 0.2s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.back-btn:hover {
    color: white;
    border-color: white;
}

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

footer {
    text-align: center;
    padding: 60px 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .tab { padding: 8px 15px; font-size: 0.9rem; }
}
