:root {
    --bg-color: #0f172a;
    --sidebar-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- LAYOUT --- */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.robot-page-container {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1e1b4b 0%, #0f172a 100%);
    color: white;
    padding-bottom: 50px;
    overflow-y: auto;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    display: flex; align-items: center; gap: 10px;
}

.highlight { color: var(--accent); }

nav ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }

nav li {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
    display: flex; align-items: center; gap: 10px;
    font-weight: 500;
}

nav li:hover, nav li.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.user-profile {
    margin-top: auto;
    display: flex; align-items: center; gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-profile .name {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.avatar {
    width: 40px; height: 40px;
    background: var(--glass-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.info { display: flex; flex-direction: column; font-size: 0.85rem; }
.status { color: var(--success); font-size: 0.7rem; }

/* Streak Ateşi */
.streak-fire {
    color: #f59e0b;
    font-weight: bold;
    animation: burn 1s infinite alternate;
}
@keyframes burn {
    from { text-shadow: 0 0 2px #f59e0b; }
    to { text-shadow: 0 0 10px #ff4500; }
}

/* --- MAIN CONTENT --- */
.content-area {
    flex: 1;
    padding: 2rem;
}

.view { display: none; animation: fadeIn 0.4s ease; }
.view.active-view { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    margin-bottom: 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
header h1 { font-size: 2rem; }
header p { color: var(--text-secondary); }

/* --- CARDS & GLASS --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 20px;
}

/* Dashboard Araçları */
.dashboard-tools-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 30px; margin-bottom: 25px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border-radius: 12px; border: 1px solid var(--glass-border);
    position: relative; z-index: 10;
}

.countdown-box { display: flex; align-items: center; gap: 15px; }
.cd-icon {
    width: 45px; height: 45px;
    background: rgba(245, 158, 11, 0.2); color: #fbbf24;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.cd-info span { font-size: 0.8rem; color: var(--text-secondary); }
.cd-info h3 { font-family: monospace; font-size: 1.4rem; color: white; letter-spacing: 1px; margin: 0; }

.divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

.pomodoro-box { display: flex; align-items: center; gap: 20px; }
.pomo-display { text-align: right; }
#pomoTimer { display: block; font-family: monospace; font-size: 2rem; font-weight: bold; line-height: 1; color: var(--accent); }
.pomo-status { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; }
.pomo-controls { display: flex; gap: 10px; }
.pomo-controls button {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05);
    color: white; cursor: pointer; transition: 0.2s; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.pomo-controls button:hover { background: var(--accent); border-color: var(--accent); }

/* --- STATS GRID --- */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem; margin-bottom: 2rem;
}

.card-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.icon-bg { background: rgba(99, 102, 241, 0.1); padding: 8px; border-radius: 8px; color: var(--accent); }
.big-number { font-size: 2.5rem; font-weight: 700; color: white; margin: 0.5rem 0; }
.subtext { font-size: 0.85rem; color: var(--text-secondary); }

select, input {
    width: 100%; padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px; color: white; outline: none; transition: border-color 0.3s;
}
select:focus, input:focus { border-color: var(--accent); }

.search-input {
    width: 100%; padding: 10px; background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border); border-radius: 8px;
    color: white; font-size: 0.9rem;
}

.quick-action {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.cta-btn {
    background: var(--accent); color: white; padding: 12px 24px;
    border: none; border-radius: 8px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 0 15px var(--accent-glow); transition: all 0.3s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--accent-glow); }

/* --- DASHBOARD ALT IZGARA (GÖREVLER, ROZETLER, LİDERLİK) --- */
.dashboard-lower-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 20px; margin-bottom: 25px;
}

/* Net Değişim */
.net-display { display: flex; align-items: center; gap: 15px; }
.trend-badge {
    font-size: 0.9rem; font-weight: bold; padding: 4px 8px; border-radius: 6px;
    display: flex; align-items: center; gap: 4px;
}
.trend-badge.up { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.trend-badge.down { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.trend-badge.neutral { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

/* Görevler */
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px;
    cursor: pointer; transition: 0.2s;
}
.task-item:hover { background: rgba(255,255,255,0.05); }
.task-item.done { opacity: 0.5; text-decoration: line-through; }
.task-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Rozetler */
.badges-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 10px; background: rgba(255,255,255,0.03); border-radius: 8px;
    border: 1px solid transparent;
}
.badge-item i { font-size: 1.5rem; margin-bottom: 5px; color: #64748b; filter: grayscale(100%); transition: 0.3s; }
.badge-item span { font-size: 0.7rem; color: var(--text-secondary); }
.badge-item.unlocked { border-color: var(--accent); background: rgba(99, 102, 241, 0.1); }
.badge-item.unlocked i { color: #fbbf24; filter: grayscale(0%); text-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }
.badge-item.unlocked span { color: white; font-weight: bold; }

/* Liderlik */
.leaderboard-list { display: flex; flex-direction: column; gap: 8px; }
.lb-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 0.9rem;
}
.lb-rank { font-weight: bold; width: 25px; color: var(--accent); }
.lb-user { flex: 1; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.lb-score { font-weight: bold; color: var(--success); }
.live-dot { font-size: 0.7rem; color: #ef4444; display: flex; align-items: center; gap: 4px; }
.live-dot::before { content: ''; width: 6px; height: 6px; background: #ef4444; border-radius: 50%; display: block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* --- KONU TAKİP & ANALİZ --- */
.exam-selector { display: flex; gap: 10px; margin-bottom: 15px; padding: 10px; overflow-x: auto; }
.exam-btn { padding: 10px 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: var(--text-secondary); border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.3s; white-space: nowrap; }
.exam-btn.active, .exam-btn:hover { background: var(--accent); color: white; box-shadow: 0 0 15px var(--accent-glow); border-color: var(--accent); }

.progress-card { padding: 20px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: bold; }
.progress-bar-bg { width: 100%; height: 12px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a855f7); transition: width 0.5s ease; box-shadow: 0 0 10px var(--accent); }

.tabs { display: flex; gap: 10px; padding: 10px; margin-bottom: 20px; overflow-x: auto; }
.tab-btn { background: transparent; border: 1px solid var(--glass-border); color: var(--text-secondary); padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: all 0.3s; white-space: nowrap; }
.tab-btn.active, .tab-btn:hover { background: rgba(99, 102, 241, 0.2); color: white; border-color: var(--accent); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; margin-top: 20px; }
.topic-item { display: flex; align-items: center; gap: 15px; padding: 15px; cursor: pointer; transition: all 0.2s; }
.topic-item:hover { background: rgba(255, 255, 255, 0.05); }
.custom-checkbox { width: 24px; height: 24px; border: 2px solid var(--text-secondary); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.topic-item.completed .custom-checkbox { background: var(--success); border-color: var(--success); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
.topic-item.completed span { color: var(--text-secondary); text-decoration: line-through; }

/* Analiz */
.analysis-container { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.input-panel h3 { margin-bottom: 20px; color: var(--accent); }
.input-group { margin-bottom: 15px; }
.net-inputs { display: flex; gap: 10px; }
.chart-panel { height: 400px; display: flex; align-items: center; justify-content: center; }

/* --- CHAT WIDGET --- */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; }
.chat-toggle-btn { width: 60px; height: 60px; background: linear-gradient(135deg, var(--accent), #818cf8); border: none; border-radius: 50%; color: white; font-size: 1.8rem; cursor: pointer; box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4); transition: all 0.3s ease; position: relative; }
.chat-toggle-btn:hover { transform: scale(1.1) rotate(10deg); }
.notification-dot { position: absolute; top: 5px; right: 5px; width: 12px; height: 12px; background: #10b981; border: 2px solid var(--bg-color); border-radius: 50%; }

.chat-window { width: 350px; height: 500px; background: rgba(30, 41, 59, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 20px; margin-bottom: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
.chat-window.hidden { transform: scale(0); opacity: 0; pointer-events: none; }
.chat-header { padding: 15px 20px; background: linear-gradient(90deg, var(--accent), #818cf8); display: flex; justify-content: space-between; align-items: center; }
.ch-info { display: flex; gap: 10px; align-items: center; }
.bot-avatar { font-size: 1.5rem; background: rgba(255,255,255,0.2); padding: 5px; border-radius: 50%; }
.ch-info h4 { color: white; font-size: 1rem; margin: 0; }
.ch-info span { color: rgba(255,255,255,0.8); font-size: 0.75rem; }
.close-chat { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.message { max-width: 80%; padding: 12px 16px; border-radius: 15px; font-size: 0.9rem; line-height: 1.4; position: relative; }
.message.bot { background: rgba(255,255,255,0.1); color: var(--text-primary); border-bottom-left-radius: 2px; align-self: flex-start; }
.message.user { background: var(--accent); color: white; border-bottom-right-radius: 2px; align-self: flex-end; }
.suggestions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.suggestions span { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 15px; font-size: 0.75rem; cursor: pointer; color: var(--text-secondary); transition: 0.2s; border: 1px solid var(--glass-border); }
.suggestions span:hover { background: var(--accent); color: white; border-color: var(--accent); }
.chat-input-area { padding: 15px; border-top: 1px solid var(--glass-border); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); padding: 10px; border-radius: 10px; color: white; outline: none; }
.chat-input-area button { background: var(--accent); color: white; border: none; width: 40px; border-radius: 10px; cursor: pointer; transition: 0.2s; }
.chat-input-area button:hover { filter: brightness(1.1); }
.typing-indicator { font-style: italic; color: var(--text-secondary); font-size: 0.8rem; margin-left: 10px; }

/* AI Soru Motoru */
.back-btn { background: transparent; border: 1px solid var(--glass-border); color: var(--text-secondary); padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.controls-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.input-wrapper label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 5px; }
.tech-btn { width: 100%; padding: 16px; background: linear-gradient(90deg, var(--accent), #818cf8); color: white; border: none; border-radius: 8px; font-weight: 700; letter-spacing: 1px; cursor: pointer; text-transform: uppercase; transition: all 0.3s; }
.tech-btn.small-btn { padding: 10px; font-size: 0.9rem; }
.tech-btn:hover { filter: brightness(1.1); }
.tech-btn:disabled { background: var(--glass-border); cursor: wait; }

/* --- MOBİL UYUM --- */
@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; height: 70px; padding: 0; flex-direction: row; justify-content: center; position: fixed; bottom: 0; top: auto; left: 0; border-right: none; border-top: 1px solid var(--glass-border); background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); z-index: 9999; }
    .sidebar .logo, .sidebar .user-profile { display: none; }
    .sidebar nav { width: 100%; }
    .sidebar nav ul { flex-direction: row; justify-content: space-around; align-items: center; height: 100%; padding: 0; gap: 0; }
    .sidebar nav li { flex-direction: column; justify-content: center; padding: 8px; margin: 0; background: transparent !important; text-align: center; gap: 4px; }
    .sidebar nav li i { font-size: 1.4rem; margin: 0; }
    .sidebar nav li span { font-size: 0.6rem; display: block; }
    .sidebar nav li.active { color: var(--accent); }
    .sidebar nav li.active i { transform: translateY(-2px); }
    
    .content-area { margin-left: 0; padding: 15px; padding-bottom: 90px; }
    .dashboard-tools-bar { flex-direction: column; gap: 15px; align-items: flex-start; }
    .divider { display: none; }
    .pomodoro-box { width: 100%; justify-content: space-between; }
    .chat-widget { bottom: 80px; right: 15px; }
    .controls-grid, .analysis-container, .dashboard-lower-grid, .stats-grid { grid-template-columns: 1fr; }
    .robot-page-container { padding-bottom: 90px; }
}
.hidden { display: none !important; }
/* --- BİLGİ BALONCUKLARI (TOOLTIP) --- */
.info-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
    margin-left: 10px;
}

.info-icon:hover { color: var(--accent); }

.tooltip {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background-color: rgba(15, 23, 42, 0.95);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%; /* İkonun üstünde */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem;
    line-height: 1.4;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; /* Tıklamayı engellemesin */
}

/* Sola yaslı tooltip (Liderlik tablosu için) */
.tooltip.left {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.info-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px); /* Hafif yukarı kayma efekti */
}
.info-icon:hover .tooltip.left {
    transform: translateX(0) translateY(-5px);
}
/* --- GELİŞMİŞ ANALİZ SAYFASI --- */
.analysis-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.panel-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.panel-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    border-radius: 8px;
}

.panel-tab.active {
    background: var(--accent);
    color: white;
}

.analysis-form {
    animation: fadeIn 0.3s ease;
}

.form-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.main-input {
    flex: 2;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
}

.date-input, .area-select {
    flex: 1;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
}

/* Ders Gridleri */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.lesson-group {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.lesson-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.dy-inputs {
    display: flex;
    gap: 8px;
}

.dy-inputs input {
    width: 100%;
    padding: 8px;
    text-align: center;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-weight: bold;
}

.dy-inputs input:first-child { border-bottom: 2px solid var(--success); } /* Doğru */
.dy-inputs input:last-child { border-bottom: 2px solid var(--danger); } /* Yanlış */

.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 10px;
}

.result-bar span { font-size: 1.2rem; color: white; }
.result-bar strong { color: var(--accent); font-size: 1.5rem; margin-left: 10px; }

.save-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.save-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3); }

/* --- DASHBOARD İKİYE BÖLÜNMÜŞ NET KARTI --- */
.split-stat {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 0;
}

.stat-half {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-half .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.val-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.big-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.trend-mini {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}
.trend-mini.up { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.trend-mini.down { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.trend-mini.neutral { background: rgba(255, 255, 255, 0.1); color: #94a3b8; }

.vertical-line {
    width: 1px;
    height: 50px;
    background: var(--glass-border);
}
/* --- ANALİZ SAYFASI DÜZENLEMELERİ --- */
.analysis-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Üst Kısım Yan Yana (Masaüstü) */
.analysis-top-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Form geniş, Grafik dar */
    gap: 20px;
}

/* Tablo Stilleri */
.history-panel {
    padding: 20px;
}

.history-panel h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.history-table th {
    text-align: left;
    padding: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    background: rgba(255,255,255,0.02);
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--glass-border);
    color: white;
}

.history-table tr:hover {
    background: rgba(255,255,255,0.03);
}

.badge-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}
.badge-type.TYT { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-type.AYT { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.delete-btn-small {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.2s;
}
.delete-btn-small:hover { transform: scale(1.2); }

/* Mobil Uyum */
@media (max-width: 1024px) {
    .analysis-top-row { grid-template-columns: 1fr; }
}