/* ----------------------------------------------------
   Core CSS Variables & Reset
   ---------------------------------------------------- */
:root {
    --bg-dark: #07070d;
    --bg-card: rgba(18, 18, 35, 0.45);
    --bg-chat-user: linear-gradient(135deg, #5345f6 0%, #2563eb 100%);
    --bg-chat-ai: rgba(22, 22, 44, 0.6);
    --border-glow: rgba(109, 40, 217, 0.25);
    --border-light: rgba(255, 255, 255, 0.06);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-primary: #818cf8;
    --accent-cyan: #00f0ff;
    --accent-green: #10b981;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 50% 50%, #12102e 0%, var(--bg-dark) 100%);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------------------------
   App Layout
   ---------------------------------------------------- */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* ----------------------------------------------------
   Sidebar Styles
   ---------------------------------------------------- */
.sidebar {
    width: 320px;
    background: rgba(10, 10, 22, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 10;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6d28d9 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 16px rgba(109, 40, 217, 0.4);
}

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
}

.sidebar-header .subtitle {
    font-size: 11px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.sidebar-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(8px);
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.filter-header h2 {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.control-group {
    margin-bottom: 16px;
}

.control-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.control-group select,
.control-group input[type="date"],
.control-group input[type="range"] {
    width: 100%;
    background: rgba(8, 8, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition-smooth);
}

.control-group select:focus,
.control-group input[type="date"]:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px rgba(109, 40, 217, 0.3);
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-label-row span {
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Custom Slider styling */
input[type="range"] {
    accent-color: #6d28d9;
    height: 6px;
    padding: 0 !important;
}

.stats-card {
    background: rgba(30, 30, 60, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: var(--text-muted);
}

.stat-value {
    color: #fff;
    font-weight: 500;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.indicator.green {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

/* ----------------------------------------------------
   Main Chat Container
   ---------------------------------------------------- */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    height: 100%;
}

.chat-header {
    height: 76px;
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 20, 0.3);
    backdrop-filter: blur(10px);
}

.chat-title-info h2 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.chat-title-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   Message Feed
   ---------------------------------------------------- */
.message-feed {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-card {
    max-width: 600px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.5s ease-out;
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: rgba(109, 40, 217, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    margin: 0 auto 20px auto;
    font-size: 24px;
    border: 1px solid rgba(109, 40, 217, 0.3);
}

.welcome-card h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #fff;
}

.welcome-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.example-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.example-questions h3 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.example-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.example-btn:hover {
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.4);
    transform: translateX(4px);
}

/* Messages bubbles */
.message-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
    animation: slideUp 0.3s ease-out;
}

.message-wrapper.user {
    justify-content: flex-end;
}

.message-wrapper.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.6;
}

.message-wrapper.user .message-bubble {
    background: var(--bg-chat-user);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.message-wrapper.ai .message-bubble {
    background: var(--bg-chat-ai);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-premium);
}

/* Citations inside answer */
.citation-link {
    background: rgba(129, 140, 248, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 2px;
    transition: var(--transition-smooth);
}

.citation-link:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

/* ----------------------------------------------------
   Input Panel
   ---------------------------------------------------- */
.input-panel {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: rgba(7, 7, 13, 0.4);
    backdrop-filter: blur(10px);
}

.input-form {
    max-width: 800px;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    background: rgba(18, 18, 35, 0.7);
    border: 1px solid var(--border-glow);
    border-radius: 14px;
    padding: 8px 12px;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
}

.input-wrapper:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.25);
}

.input-wrapper textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    padding: 8px;
    max-height: 120px;
}

/* Buttons */
.btn {
    border: none;
    outline: none;
    font-family: inherit;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    width: 100%;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
}

.btn-icon {
    background: transparent;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    position: relative;
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.btn-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 6px #ef4444;
}

.send-btn {
    width: 36px;
    height: 36px;
    background: #4f46e5;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.send-btn:hover {
    background: #6366f1;
    transform: scale(1.05);
}

/* ----------------------------------------------------
   Slide-out Citations Sidebar Panel
   ---------------------------------------------------- */
.sources-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: rgba(10, 10, 22, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.sources-panel.open {
    transform: translateX(0);
}

.panel-header {
    height: 76px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.source-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition-smooth);
    animation: fadeIn 0.3s ease-out;
}

.source-card:hover {
    background: rgba(109, 40, 217, 0.05);
    border-color: rgba(109, 40, 217, 0.3);
    transform: translateY(-2px);
}

.source-card.highlighted {
    background: rgba(0, 240, 255, 0.05) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.source-idx {
    display: inline-block;
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.source-card h4 {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1.4;
}

.source-authors {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.source-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 12px;
}

.score-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdf-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pdf-link:hover {
    color: #fff;
    text-decoration: underline;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
}

.empty-state i {
    font-size: 32px;
    color: rgba(255,255,255,0.05);
}

.empty-state p {
    font-size: 12.5px;
}

/* ----------------------------------------------------
   Skeleton Shimmer Load State
   ---------------------------------------------------- */
.skeleton-msg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 75%; }
.skeleton-line.long { width: 95%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ----------------------------------------------------
   Sidebar Navigation
   ---------------------------------------------------- */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 24px 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    transition: var(--transition-smooth);
    outline: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.nav-btn.active {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 1px solid rgba(109, 40, 217, 0.35);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.1);
}

/* ----------------------------------------------------
   RAG Triad Dashboard
   ---------------------------------------------------- */
.eval-feed {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    height: 100%;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.summary-card-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.metric-card.main-score {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.15);
}

.metric-score-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-big-score {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 10px 0;
}

.score-footer-text {
    font-size: 11px;
    color: var(--text-muted);
}

.metric-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.metric-score-val {
    font-size: 15px;
    font-weight: 700;
}

.metric-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 6px;
}

/* Progress bar styling */
.progress-bar-row {
    background: rgba(255, 255, 255, 0.04);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-purple { background: #a855f7; }
.bg-cyan { background: #06b6d4; }
.bg-green { background: #10b981; }
.bg-indigo { background: #6366f1; }

.score-green { color: var(--accent-green); }
.score-yellow { color: #f59e0b; }
.score-red { color: #ef4444; }

/* Dashboard columns */
.dashboard-split-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.card-header h3 {
    font-size: 14.5px;
    font-weight: 600;
}

.card-header i {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
}

.history-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.history-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(129, 140, 248, 0.2);
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    align-items: center;
}

.history-date {
    color: var(--text-muted);
}

.history-score {
    color: #fff;
}

.history-bar-row {
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    width: 100%;
}

.history-bar-fill {
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
}

.card-footer {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
}

/* Evaluation Details */
.details-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.details-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.details-panel-header i {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
}

.details-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eval-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.eval-case-card:hover {
    border-color: rgba(255,255,255,0.1);
}

.eval-case-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 16px;
}

.eval-case-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.case-number {
    font-size: 9.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.eval-case-title h4 {
    font-size: 13.5px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
}

.eval-case-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eval-badge {
    font-size: 10.5px;
    padding: 2.5px 8px;
    border-radius: 6px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
}

.eval-badge.score-green {
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.04);
}

.eval-badge.score-yellow {
    border-color: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
}

.eval-badge.score-red {
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
}

.expand-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eval-case-body {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    border-top: 1px solid transparent;
}

.eval-case-card.expanded {
    border-color: rgba(129, 140, 248, 0.25);
}

.eval-case-card.expanded .eval-case-body {
    max-height: 1500px;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    transition: max-height 0.6s cubic-bezier(1, 0, 1, 0);
}

.eval-case-card.expanded .expand-icon {
    transform: rotate(180deg);
    color: #fff;
}

.eval-body-section {
    margin-bottom: 16px;
}

.eval-body-section:last-child {
    margin-bottom: 0;
}

.eval-body-section h5 {
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-icon {
    width: 14px;
    height: 14px;
}

.text-green { color: var(--accent-green); }

.eval-text-block {
    font-size: 13px;
    line-height: 1.5;
    padding: 12px;
    border-radius: 8px;
    background: rgba(4, 4, 10, 0.5);
    border: 1px solid rgba(255,255,255,0.03);
    color: var(--text-main);
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Empty State / welcome enhancements */
.triad-explain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 24px;
    text-align: left;
    width: 100%;
}

.triad-explain-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
}

.triad-explain-card h4 {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.triad-explain-card p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0 !important;
}

/* Live Evaluation Loading Screen */
.eval-loading-orb {
    width: 90px;
    height: 90px;
    position: relative;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
}

.pulse-1 {
    animation: pulseOrb 2s infinite ease-out;
    border-color: rgba(0, 240, 255, 0.25);
}

.pulse-2 {
    animation: pulseOrb 2s infinite ease-out;
    animation-delay: 1s;
    border-color: rgba(109, 40, 217, 0.25);
}

.orb-core {
    width: 52px;
    height: 52px;
    background: rgba(7, 7, 15, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
    z-index: 2;
}

@keyframes pulseOrb {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.loader-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    max-width: 320px;
    margin: 0 auto;
}

.loader-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.loader-step.active {
    color: #fff;
    opacity: 1;
    font-weight: 500;
}

.loader-step.active .step-indicator {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: stepPulse 1s infinite alternate;
}

.loader-step.done {
    color: var(--accent-green);
    opacity: 0.8;
}

.loader-step.done .step-indicator {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

.step-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

@keyframes stepPulse {
    from { transform: scale(0.9); }
    to { transform: scale(1.2); }
}

.spin {
    animation: loadingSpin 1s linear infinite;
}

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

/* Skeleton dash loader */
.skeleton-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.skeleton-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    animation: shimmer 1.5s infinite;
    background: linear-gradient(90deg, rgba(255,255,255,0.01) 25%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.01) 75%);
    background-size: 200% 100%;
    width: 100%;
}

