/* Genel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Ana içerik düzeni */
.main-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sol panel - Form */
.input-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: fit-content;
}

.input-section h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #718096;
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Aktif sınav bilgileri */
.current-exam {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #ea9666;
}

.current-exam h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.current-exam p {
    margin-bottom: 8px;
    color: #718096;
}

.current-exam span {
    font-weight: 600;
    color: #667eea;
}

.btn-finish {
    width: 100%;
    padding: 12px;
    background: #38a169;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-finish:hover {
    background: #2f855a;
}

/* Sağ panel - Sonuçlar */
.results-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.results-section h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

/* İstatistik kartları */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-card span {
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
}

/* Tablo container */
.exam-table-container {
    margin-bottom: 30px;
}

.exam-table-container h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

/* Sınav tablosu */
.exam-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.exam-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.exam-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.exam-table tbody tr:hover {
    background: #f7fafc;
}

.exam-table tbody tr:last-child td {
    border-bottom: none;
}

.subject-name {
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.subject-input {
    width: 50px;
    padding: 6px 4px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 0.85rem;
}

.subject-input:focus {
    outline: none;
    border-color: #667eea;
}

.score-cell {
    text-align: center;
    font-weight: 600;
    color: #667eea;
}

.total-row {
    background: #f7fafc;
    font-weight: 600;
}

.total-row td {
    color: #2d3748;
    border-top: 2px solid #e2e8f0;
}

/* Kaydedilen sınavlar */
.recent-exams h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.exam-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.exam-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-subject {
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.exam-date {
    color: #718096;
    font-size: 0.9rem;
}

.exam-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-item {
    color: #4a5568;
    font-size: 0.9rem;
}

.detail-item strong {
    color: #667eea;
    font-weight: 600;
}

.exam-scores {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.score-item {
    background: #edf2f7;
    padding: 6px 12px;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.9rem;
}

.score-item strong {
    color: #38a169;
    font-weight: 600;
}

.exam-actions {
    margin-top: 15px;
    text-align: right;
}

.delete-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background: #c53030;
}

/* Mobil Uygulama İndirme Banner Stilleri */
.mobile-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.mobile-install-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.banner-content {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
}

.banner-icon {
    font-size: 3rem;
    margin-bottom: 5px;
}

.banner-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.banner-text p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.5;
}

.banner-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
}

.banner-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-actions .btn-primary {
    background: white;
    color: #667eea;
}

.banner-actions .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.banner-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.install-instructions {
    padding: 10px 0;
}

.install-instructions ol,
.install-instructions ul {
    text-align: left;
    color: #4a5568;
}

/* PWA Kurulum Prompt Stilleri */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUp 0.4s ease;
}

.pwa-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pwa-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.pwa-text {
    flex: 1;
}

.pwa-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.pwa-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.pwa-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pwa-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pwa-actions .btn-primary {
    background: white;
    color: #667eea;
}

.pwa-actions .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.pwa-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pwa-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobil cihazlar için banner düzenlemesi */
@media (max-width: 768px) {
    .mobile-install-banner {
        padding: 15px;
    }

    .banner-icon {
        font-size: 2.5rem;
    }

    .banner-text h4 {
        font-size: 1.1rem;
    }

    .banner-text p {
        font-size: 0.9rem;
    }

    .banner-actions {
        flex-direction: column;
    }

    .banner-actions .btn {
        width: 100%;
    }

    .pwa-install-prompt {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }

    .pwa-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .pwa-actions {
        width: 100%;
        justify-content: center;
    }

    .pwa-actions .btn {
        flex: 1;
        max-width: 120px;
    }
}

/* PWA Kurulum Sonrası Gizleme */
.pwa-install-prompt.hidden {
    display: none !important;
}

/* Sınav Detay Modal Stilleri */
.exam-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 25px;
}

.exam-summary {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.exam-summary p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 1rem;
}

.exam-summary strong {
    color: #2d3748;
    font-weight: 600;
}

.subject-details h4 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.subject-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subject-detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subject-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exam-detail-modal .subject-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1rem;
}

.subject-results {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.subject-results span {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.subject-results .correct {
    background: #c6f6d5;
    color: #22543d;
}

.subject-results .wrong {
    background: #fed7d7;
    color: #742a2a;
}

.subject-results .net {
    background: #e2e8f0;
    color: #2d3748;
}

.subject-results .score {
    background: #bee3f8;
    color: #2a4365;
}

/* Detay butonu stilleri */
.detail-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    margin-right: 10px;
}

.detail-btn:hover {
    background: #3182ce;
}

/* Modal animasyonları */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Grafik bölümü stilleri - GÜNCELLENDİ */
.graphs-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.graphs-section h3 {
    color: #4a5568;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.chart-container {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    width: 100%;
    position: relative;
    height: auto;
}

/* Grafikler için özel mobil ayarları */
@media (max-width: 768px) {
    .chart-container {
        padding: 10px;
        height: 350px !important;
        overflow: hidden;
    }

    .chart-container canvas {
        width: 100% !important;
        height: 100% !important;
        min-height: 300px;
    }

    .chartjs-size-monitor,
    .chartjs-render-monitor {
        font-size: 12px !important;
    }
}

/* Çok küçük ekranlar için ek ayarlar */
@media (max-width: 480px) {
    .chart-container {
        height: 400px !important;
    }

    .graphs-section h3 {
        font-size: 1.2rem;
    }
}

/* Mobil uyumluluk */
@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-overview {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .exam-table {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    .input-section,
    .results-section {
        padding: 20px;
    }

    .exam-table {
        font-size: 0.9rem;
    }

    .exam-table th,
    .exam-table td {
        padding: 10px 6px;
    }

    .exam-table th {
        font-size: 0.8rem;
    }

    .subject-input {
        width: 45px;
        padding: 4px 2px;
        font-size: 0.8rem;
    }

    .subject-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .exam-details,
    .exam-scores {
        flex-direction: column;
        gap: 10px;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 20px;
    }

    .subject-results {
        flex-direction: column;
        gap: 10px;
    }

    .subject-results span {
        text-align: center;
    }

    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Toast Notification Stilleri */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    background: white;
    border-left: 4px solid #667eea;
}

.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left-color: #38a169;
    background: #f0fff4;
}

.toast-error {
    border-left-color: #e53e3e;
    background: #fff5f5;
}

.toast-warning {
    border-left-color: #d69e2e;
    background: #fffaf0;
}

.toast-info {
    border-left-color: #4299e1;
    background: #ebf8ff;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-text {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Action Buttons */
.actions-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-export {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-import {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

.btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-compare {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-clear {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

.btn-clear:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Filter Buttons */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Comparison Styles */
.compare-selector {
    margin-bottom: 30px;
}

.compare-summary {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.compare-summary h4 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.compare-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    text-align: center;
}

.compare-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 8px;
}

.compare-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.compare-date {
    font-size: 0.9rem;
    color: #718096;
}

.compare-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-row span:first-child {
    color: #718096;
    font-weight: 500;
}

.stat-row strong {
    color: #2d3748;
    font-weight: 600;
}

.stat-row .positive {
    color: #38a169;
    font-weight: 700;
}

.stat-row .negative {
    color: #e53e3e;
    font-weight: 700;
}

.compare-subjects {
    margin-top: 30px;
}

.compare-subjects h4 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.subject-comparison-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subject-compare-row {
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subject-compare-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
    margin-bottom: 5px;
}

.subject-compare-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subject-compare-values span:first-child {
    color: #4a5568;
    font-size: 0.95rem;
}

.subject-compare-scores {
    color: #718096;
    font-size: 0.9rem;
}

.subject-compare-values .positive {
    color: #38a169;
    font-weight: 700;
}

.subject-compare-values .negative {
    color: #e53e3e;
    font-weight: 700;
}

/* Mobil Toast */
@media (max-width: 768px) {
    .toast-message {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100px);
    }

    .toast-message.show {
        transform: translateY(0);
    }

    .actions-section {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }

    .stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* HMGS Input Section Stilleri */
.hmgs-input-section {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.hmgs-summary {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hmgs-summary .stat-row {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hmgs-summary .stat-row:last-child {
    background: #f7fafc;
    border: 2px solid #667eea;
    font-weight: 700;
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 10px;
    }

    .exam-table th,
    .exam-table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }

    .subject-input {
        width: 40px;
        padding: 3px 1px;
        font-size: 0.75rem;
    }

    /* Tablo başlıklarını mobilde kısalt */
    .exam-table th:nth-child(2) {
        position: relative;
        font-size: 0;
    }

    .exam-table th:nth-child(2)::after {
        content: "D";
        font-size: 0.75rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .exam-table th:nth-child(3) {
        position: relative;
        font-size: 0;
    }

    .exam-table th:nth-child(3)::after {
        content: "Y";
        font-size: 0.75rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .exam-table th:nth-child(4) {
        position: relative;
        font-size: 0;
    }

    .exam-table th:nth-child(4)::after {
        content: "N";
        font-size: 0.75rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .exam-table th:nth-child(5) {
        position: relative;
        font-size: 0;
    }

    .exam-table th:nth-child(5)::after {
        content: "%";
        font-size: 0.75rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}