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

/* Skip Link - Erişilebilirlik için */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* Genel gövde ve sayfa yapısı */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    /* İçeriğin kalan boşluğu doldurmasını sağlar */
    display: flex;
    flex-direction: column;
}

/* Main içeriğin kalan alanı kaplamasını sağla */
main#main-content {
    flex: 1;
}

/* Antreman sayfası ve GENEL mobilde padding kaldır (Tam Sayfa Görünüm) */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 0 !important;
    }

    .page-wrapper .antreman-page {
        margin: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Container mobilde kenarlara yapışsın, border kalksın */
    .container {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        /* Alt çizgi kalabilir veya kalkabilir, sade olsun */
        box-shadow: none;
    }
}

/* ----- GLOBAL HEADER AD ----- */
.ads-global-header {
    margin-bottom: 20px;
    text-align: center;
    padding: 10px 0;
}

.ads-global-header>* {
    margin: 0 auto;
}

/* ----- HEADER ----- */
.site-header {
    background: #fff;
    padding: 12px 0;
    border-radius: 0;
    border: 1px solid #dcdde1;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobilde uyarı badge'i için */
@media (max-width: 768px) {
    .site-header-inner>div[style*="margin-left: auto"] {
        margin-right: 8px !important;
    }

    .site-header-inner>div[style*="margin-left: auto"] a {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .site-header-inner>div[style*="margin-left: auto"] a span:nth-child(2) {
        display: none;
    }
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.site-logo-circle {
    background: #27ae60;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.site-tagline {
    font-size: 11px;
    color: #5a6c7d;
}

/* Menü */
.site-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 6px 12px;
    text-decoration: none;
    font-size: 13px;
    border-radius: 999px;
    color: #34495e;
    border: 1px solid transparent;
    transition: 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    background: #ecf0f1;
    border-color: #bdc3c7;
}

.nav-link-active {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

/* Sayfa başlıkları */
.page-heading {
    margin: 10px 0 20px;
}

.page-heading h1 {
    font-size: 22px;
    margin-bottom: 4px;
    color: #2c3e50;
}

.page-heading p {
    font-size: 13px;
    color: #7f8c8d;
}

/* ----- KATEGORİ GRID ----- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    width: 100%;
}

.category-card {
    background: #fff;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    padding: 16px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: 0.2s;
}

.category-card:hover {
    background: #eafaf1;
    border-color: #27ae60;
    transform: translateY(-3px);
}

.category-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-meta {
    font-size: 13px;
    color: #7f8c8d;
}

/* ----- GENEL KUTULAR ----- */
.container {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dfe6e9;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.info {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.toolbar {
    margin-bottom: 12px;
}

.toolbar form {
    font-size: 13px;
}

.toolbar label {
    margin-right: 6px;
}

.toolbar select {
    padding: 4px 6px;
    font-size: 13px;
}

/* ----- BUTONLAR (GENEL) ----- */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.15s ease;
}

.btn-primary {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
    font-weight: 600;
}

.btn-primary:hover {
    background: #219150;
    border-color: #219150;
    transform: translateY(-2px);
}

.btn-primary:active {
    background: #1e8449;
    border-color: #1e8449;
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #bdc3c7;
    border-color: #bdc3c7;
    cursor: default;
    transform: none;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-ghost {
    border: 1px solid #ccc;
    color: #333;
    background: transparent;
}

.btn-secondary {
    background: #f0f1f5;
    color: #333;
    border-color: #dfe6e9;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-secondary:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 1px solid #dfe6e9;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-outline.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

/* Soru seçenekleri */
.secenek-clickable {
    cursor: pointer;
    transition: 0.15s;
}

.secenek-yanlis {
    background: #ffebeb !important;
    border-color: #e74c3c !important;
    color: #c0392b !important;
}

.secenek-dogru,
.secenek-dogru-click {
    background: #d4f5dd !important;
    border-color: #1e8449 !important;
    color: #145a32 !important;
}

/* ----- SORU KARTLARI ----- */
.soru-karti {
    border-radius: 8px;
    border: 1px solid #dfe6e9;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #fafafa;
}

/* Üst şerit */
.soru-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}

.soru-ust-sol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 15px;
}

.soru-ust-sag {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

.kategori-etiket {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f3f5;
    color: #555;
}

.soru-metin {
    font-size: 14px;
    margin-bottom: 8px;
}

.secenek-listesi {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 8px;
}

.secenek {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.secenek-harf {
    font-weight: 600;
    min-width: 22px;
}

/* Çözüm butonu ve kutusu */
.cozum-btn {
    border: none;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    background: #ecf0f1;
    color: #2c3e50;
}

.cozum-btn:hover {
    background: #d0d7de;
}

.cozum-metin {
    display: none;
    margin-top: 6px;
    padding: 6px;
    border-radius: 6px;
    background: #fef9e7;
    border: 1px solid #f1c40f;
    font-size: 13px;
}

.cozum-metin.acik {
    display: block;
}

.page-footer {
    margin-top: 40px;
    padding: 0;
    width: 100%;
    font-size: 13px;
    color: #6b7280;
    /* soft gray */
    text-align: center;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.footer-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 18px 20px;
}

.page-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.page-footer a:hover {
    text-decoration: underline;
    opacity: .9;
}


/* ----- Hamburger buton (mobil/tablet) ----- */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 4px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #2c3e50;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #2c3e50;
    border-radius: 2px;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

/* ----- Tablet & Telefon (hepsi) ----- */
@media (max-width: 900px) {
    body {
        padding: 4px;
    }

    .site-header-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 8px;
        display: none;
    }

    .site-nav .nav-link {
        width: 100%;
        text-align: left;
    }

    .site-nav.nav-open {
        display: flex;
    }
}

/* Küçük telefonlar için */
@media (max-width: 480px) {
    body {
        padding: 2px;
    }

    .site-logo-circle {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .site-title {
        font-size: 16px;
    }

    .site-tagline {
        font-size: 10px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* =========================
   ADMIN PANEL STİLLERİ
   ========================= */

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

@media (max-width: 768px) {
    .admin-container {
        padding: 12px;
    }
}

.admin-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.admin-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 16px;
}

/* İstatistik kutuları */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e1e2e6;
    padding: 10px 12px;
}

/* Ortak stat stilleri */
.stat-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.stat-sub {
    font-size: 11px;
    color: #95a5a6;
}

.stat-good {
    color: #27ae60;
}

.stat-bad {
    color: #c0392b;
}

/* Admin kartlarında değerleri biraz daha büyük göster */
.stat-card .stat-value {
    font-size: 20px;
}

/* Admin butonları */
.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-btn {
    text-align: center;
    min-width: 180px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff !important;
    display: inline-block;
    background: #3498db;
}

.admin-btn:hover {
    opacity: 0.9;
}

.admin-btn.purple {
    background: #8e44ad;
}

.admin-btn.red {
    background: #e74c3c;
    color: #fff !important;
}

.admin-btn.red:hover {
    background: #c0392b;
}

.admin-logout-btn {
    background: #e74c3c;
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    min-width: 120px;
    display: inline-block;
}

.admin-logout-btn:hover {
    opacity: 0.9;
}

/* =========================
   SORU LİSTESİ SAYFASI
   ========================= */

/* Üstteki doğru/yanlış özet barı */
.sinav-ozet {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.sinav-ozet span {
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 999px;
}

/* Toolbar aksiyonları (Yenile / Daha fazla yükle) */
.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Yükleniyor ve "başka soru kalmadı" mesajları */
.loading-indicator,
.no-more-questions {
    text-align: center;
    padding: 10px;
    font-size: 13px;
    color: #7f8c8d;
}

/* Başta gizli olsunlar */
.loading-indicator {
    display: none;
}

.no-more-questions {
    display: none;
}

/* Başa dön butonu */
.back-to-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #dcdde1;
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: none;
    /* JS ile açılacak */
    z-index: 100;
}

/* Kullanıcı adı linki */
.nav-user {
    /* Pasifken normal nav-link gibi kalsın, ekstra arka plan verme */
}

/* Kullanıcı sayfasındayken (aktifken) diğerleriyle aynı görünsün */
.nav-user.nav-link-active {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.nav-logout {
    background: #e74c3c;
    color: #fff;
}

/* =========================
   MEMBERS / ÜYELİK SAYFASI
   ========================= */

.members-page {
    margin-top: 20px;
}

.members-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
}

.card.members-card {
    padding: 16px 18px;
}

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

.members-label {
    color: #666;
}

.members-value {
    font-weight: 500;
}

/* Admin rozeti (ortak) */
.badge-admin {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    background: #ffeaa7;
    color: #8c5b00;
}

.members-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.members-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.stat-box {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 8px 10px;
}

/* =========================
   MEMBERS INFO GRID (members.php)
   ========================= */

.info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 16px;
}

/* Ortak kart stili */
.info-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e4ea;
    padding: 16px 18px;
}

/* Satır yapısı */
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 500;
}

/* Butonlar */
.info-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Performans kutusu iç grid */
.info-stats-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.stat-item {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 8px 10px;
}

.info-hint {
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

/* =========================
   FAVORİ & HATA BİLDİR ICON BUTONLARI
   ========================= */

/* Ortak icon buton stili (favori + hata bildir) */
.icon-btn,
.fav-btn,
.report-btn {
    border: none;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 0;
}

/* Hover – sadece hafif zemin */
.icon-btn:hover,
.fav-btn:hover,
.report-btn:hover {
    background: #eef1f3;
}

/* Aktifte transform yok -> titreme yok */
.icon-btn:active,
.fav-btn:active,
.report-btn:active {
    background: #e2e6ea;
}

/* SVG yıldız (favori ikon) – varsayılan: içi boş gri kontur */
.icon-star {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #9ca3af;
    stroke-width: 2;
    display: block;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Favori aktif hâli – içi dolu altın sarısı */
.fav-btn.fav-active .icon-star,
.icon-btn.fav-active .icon-star {
    fill: #fbbf24;
    stroke: #f59e0b;
    stroke-width: 2;
}

/* Hata bildir ikon (metinsel) */
.icon-flag {
    font-size: 16px;
    line-height: 1;
    color: #e67e22;
}

/* Hata bildirildiğinde bayrak rengi değişsin */
.report-btn.reported .icon-flag {
    color: #27ae60;
}

/* Hata bildir / favori loading ortak */
.icon-btn.loading,
.fav-btn.loading,
.report-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* İkon butonları mobilde biraz küçült */
@media (max-width: 600px) {

    .icon-btn,
    .fav-btn,
    .report-btn {
        width: 28px;
        height: 28px;
    }

    .icon-star {
        width: 18px;
        height: 18px;
    }
}

/* =========================
   RAPOR TABLOSU (report-table)
   ========================= */

.report-table th,
.report-table td {
    word-wrap: break-word;
}

@media (max-width: 768px) {

    .report-table th,
    .report-table td {
        padding: 5px 4px;
        font-size: 12px;
    }

    .wallpapers-text {
        font-size: 12px;
    }

    .wallpapers-goto-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* === HATA BİLDİR MODAL === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    width: 320px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease;
}

.modal-box h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #2c3e50;
}

.modal-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dce0e4;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-btn {
    width: 100%;
    padding: 10px;
    background: #4a90e2;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.modal-btn:hover {
    background: #357bc8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



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

.message-item {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    font-size: 14px;
}

.message-item.is-unread {
    border-color: #3b82f6;
    background: #eff6ff;
}

.message-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: #6b7280;
}

.message-subject {
    font-weight: 600;
    margin-bottom: 4px;
}

.message-body {
    line-height: 1.6;
    color: #2c3e50;
}

.message-body p {
    margin: 0 0 12px 0;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-body code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    display: inline-block;
}

.message-body a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

.message-body a:hover {
    text-decoration: underline;
}

.message-body strong {
    font-weight: 600;
    color: #2c3e50;
}

.message-body ul,
.message-body ol {
    margin: 8px 0;
    padding-left: 24px;
}

.message-body li {
    margin: 4px 0;
}

.message-body {
    font-size: 13px;
    color: #374151;
}

.nav-unread-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 700;
    display: inline-block;
}

.admin-btn.orange {
    background: #f97316;
    border-color: #ea580c;
}

.admin-btn.orange:hover {
    background: #ea580c;
    border-color: #c2410c;
}

.admin-btn.settings {
    background: #094c41;
    border-color: #f6b3be;
}

.admin-btn.settings:hover {
    background: #038772;
    border-color: #fc788d;
}

/* Üst bilgi alanı */
.ust-bilgi-alani {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Filtre wrapper */
.qlist-filter-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* Üst bar sticky */
.ust-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

/* Üst bar genel alan */
.ust-bar-icerik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Sol blok - Sağ blok */
    width: 100%;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

/* Doğru – Yanlış kutusunda vurgulu sayılar */
.sinav-dogru strong {
    color: #16a34a;
    font-weight: 700;
}

.sinav-yanlis strong {
    color: #dc2626;
    font-weight: 700;
}

/* Filtre butonu */
.qlist-filter-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.15s;
}

.qlist-filter-button:hover {
    background: #e5e7eb;
}

/* Açılır menü */
.qlist-filter-menu {
    position: absolute;
    top: 120%;
    left: 0;
    width: 230px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    display: none;
    z-index: 1000;
}

.qlist-filter-menu.is-open {
    display: block;
}

.filter-menu-item {
    padding: 8px 14px;
    display: block;
    color: #111827;
    text-decoration: none;
}

.filter-menu-item:hover {
    background: #f3f4f6;
}

.filter-menu-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

/* Üst bar sol & sağ blok */
.ust-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ust-bar-right {
    display: flex;
    align-items: center;
}

/* Yazı boyutu butonları */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.font-btn:hover {
    background: #e5e7eb;
}

/* Üst bar boyutlandırmadan etkilenmesin */
.ust-bar-sticky,
.ust-bar-icerik,
.ust-bar-left,
.ust-bar-right,
.qlist-filter-wrapper,
.qlist-filter-button,
.sinav-ozet,
.font-btn {
    font-size: 14px !important;
}

/* Soru alanını zoom'layan wrapper */
#soruZoomWrapper {
    transform-origin: top center;
    transition: transform 0.15s ease-out;
    display: inline-block;
    width: 100%;
}

.blog-item {
    background: #fff;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
}

.blog-item h3 {
    margin: 0;
}

.blog-content {
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Eski admin-action-card stilleri kaldırıldı - yeni stiller aşağıda */

/* RENK TEMALARI - Modern gradient backgrounds */
.admin-action-card.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border-color: #2563eb;
}

.admin-action-card.blue:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.admin-action-card.green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-color: #16a34a;
}

.admin-action-card.green:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
}

.admin-action-card.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    border-color: #7c3aed;
}

.admin-action-card.purple:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
}

.admin-action-card.yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    color: #1f2937;
    border-color: #ca8a04;
}

.admin-action-card.yellow:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%);
    color: #1f2937;
}

.admin-action-card.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    border-color: #0891b2;
}

.admin-action-card.cyan:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: #ffffff;
}

.admin-action-card.violet {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #ffffff;
    border-color: #6d28d9;
}

.admin-action-card.violet:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    color: #ffffff;
}

.admin-action-card.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-color: #dc2626;
}

.admin-action-card.red:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
}

.admin-action-card.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #ea580c;
}

.admin-action-card.orange:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #ffffff;
}

.admin-action-card.indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    border-color: #4f46e5;
}

.admin-action-card.indigo:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff;
}

.admin-action-card.dark {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    color: #ffffff;
    border-color: #1e293b;
}

.admin-action-card.dark:hover {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
}

.admin-action-card.brown {
    background: linear-gradient(135deg, #a16207 0%, #854d0e 100%);
    color: #ffffff;
    border-color: #854d0e;
}

.admin-action-card.brown:hover {
    background: linear-gradient(135deg, #854d0e 0%, #713f12 100%);
    color: #ffffff;
}

.admin-action-card.teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #ffffff;
    border-color: #0d9488;
}

.admin-action-card.teal:hover {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
}

.admin-action-card.logout {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff;
    border-color: #991b1b;
}

.admin-action-card.logout:hover {
    background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
    color: #ffffff;
}

/* Renkli kartlarda span rengi */
.admin-action-card.blue span,
.admin-action-card.green span,
.admin-action-card.purple span,
.admin-action-card.cyan span,
.admin-action-card.violet span,
.admin-action-card.red span,
.admin-action-card.orange span,
.admin-action-card.indigo span,
.admin-action-card.dark span,
.admin-action-card.brown span,
.admin-action-card.teal span,
.admin-action-card.logout span {
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

.admin-action-card.yellow span {
    color: rgba(31, 41, 55, 0.8);
    opacity: 1;
}


/* ===== Merged inline styles ===== */

/* === Inline styles moved from admin_backup.php === */
.locked-container {
    margin: 40px auto;
    max-width: 600px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.locked-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.locked-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.locked-desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 20px;
}

.locked-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.locked-btn:hover {
    background: #1d4ed8;
}

.backup-status {
    margin-top: 10px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.backup-status.success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.backup-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.backup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .backup-grid {
        grid-template-columns: 1fr;
    }
}

.backup-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
}

.backup-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.backup-card-title .lock {
    font-size: 15px;
}

.backup-card-text {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.backup-btn-primary,
.backup-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease, color 0.12s ease;
}

.backup-btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.backup-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.backup-btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.backup-btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

.backup-help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.backup-top-actions {
    margin-top: 10px;
    margin-bottom: 18px;
    text-align: right;
}


/* === Inline styles moved from admin_backup_logs.php === */
.locked-container {
    margin: 40px auto;
    max-width: 600px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px 28px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.locked-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.locked-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.locked-desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 20px;
}

.locked-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.locked-btn:hover {
    background: #1d4ed8;
}

.backup-logs-table-wrapper {
    margin-top: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
}

.backup-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.backup-logs-table th,
.backup-logs-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.backup-logs-table th {
    font-weight: 600;
    color: #4b5563;
    background: #f9fafb;
}

.backup-logs-table tr:last-child td {
    border-bottom: none;
}

.badge-log {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-log.backup-download {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-log.backup-restore {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-log.lock {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    margin-left: 6px;
}

.log-filename {
    font-size: 13px;
    color: #374151;
    word-break: break-all;
}

.log-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}


/* === Inline styles moved from admin_badge_settings.php === */
.badge-settings-wrapper {
    margin-top: 20px;
}

.badge-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.badge-settings-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.badge-settings-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.badge-settings-card p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.form-row {
    margin-bottom: 8px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 3px;
}

.form-row input[type="number"] {
    width: 100%;
    padding: 6px 9px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    outline: none;
}

.form-row input[type="number"]:focus {
    border-color: #2563eb;
}

.small-hint {
    font-size: 11px;
    color: #9ca3af;
}

.alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.alert.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.alert.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.btn-primary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
}

.btn-primary:hover {
    background: #1d4ed8;
}

@media (max-width: 900px) {
    .badge-settings-grid {
        grid-template-columns: 1fr;
    }
}


/* === Inline styles moved from admin_blog_edit.php === */
.admin-blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    margin-top: 18px;
}

.admin-form-row {
    margin-bottom: 16px;
}

.admin-form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.admin-input,
.admin-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.admin-input:focus,
.admin-select:focus {
    border-color: #2563eb;
}

.slug-preview {
    font-size: 12px;
    margin-top: 4px;
    color: #6b7280;
}

.slug-preview code {
    background: #f3f4f6;
    padding: 2px 4px;
    border-radius: 4px;
}

.quill-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.quill-editor {
    min-height: 260px;
    padding: 10px;
}

.admin-blog-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.status-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.status-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}


/* === Inline styles moved from admin_blog_list.php === */
.admin-blog-table-wrapper {
    margin-top: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
}

.admin-blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-blog-table th,
.admin-blog-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-blog-table th {
    font-weight: 600;
    color: #4b5563;
    background: #f9fafb;
}

.admin-blog-table tr:last-child td {
    border-bottom: none;
}

/* Durum badge'leri */
.blog-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.blog-status-published {
    background: #dcfce7;
    color: #15803d;
}

.blog-status-draft {
    background: #e5e7eb;
    color: #4b5563;
}

/* Küçük admin butonu */
.admin-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #2563eb;
    color: #2563eb;
    text-decoration: none;
    background: #eff6ff;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
    margin-right: 6px;
}

.admin-btn-small:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Üst aksiyon alanı */
.admin-blog-top-actions {
    margin-top: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}


/* === Inline styles moved from admin_blog_new.php === */
.admin-blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    margin-top: 18px;
}

.admin-form-row {
    margin-bottom: 16px;
}

.admin-form-row label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.admin-input,
.admin-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.admin-input:focus,
.admin-select:focus {
    border-color: #2563eb;
}

.slug-preview {
    font-size: 12px;
    margin-top: 4px;
    color: #6b7280;
}

.slug-preview code {
    background: #f3f4f6;
    padding: 2px 4px;
    border-radius: 4px;
}

.quill-wrapper {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.quill-editor {
    min-height: 260px;
    padding: 10px;
}

.admin-blog-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.status-message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.status-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}



.admin-dashboard {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.admin-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.admin-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.admin-form-group {
    margin-bottom: 10px;
}

.admin-form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    font-weight: 600;
    color: #374151;
}

.admin-form-group textarea,
.admin-form-group input,
.admin-form-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
    background: #f9fafb;
}

.admin-form-group textarea:focus,
.admin-form-group input:focus,
.admin-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.admin-status {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.admin-status.error {
    background: #fdecea;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.admin-status.success {
    background: #eafaf0;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-btn-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: #1e40af;
}

.admin-btn-ghost {
    background: #f3f4f6;
    color: #111827;
}

.admin-btn-ghost:hover {
    background: #e5e7eb;
}

.admin-small-text {
    font-size: 12px;
    color: #6b7280;
}




.admin-dashboard {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.admin-section-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.admin-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .admin-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-form-group {
    margin-bottom: 10px;
}

.admin-form-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
    font-weight: 600;
    color: #374151;
}

.admin-form-group textarea,
.admin-form-group input,
.admin-form-group select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
    background: #f9fafb;
}

.admin-form-group textarea:focus,
.admin-form-group input:focus,
.admin-form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.admin-status {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.admin-status.error {
    background: #fdecea;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.admin-status.success {
    background: #eafaf0;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-btn-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: #1e40af;
}

.admin-btn-ghost {
    background: #f3f4f6;
    color: #111827;
}

.admin-btn-ghost:hover {
    background: #e5e7eb;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.admin-badge.active {
    background: #eafaf0;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.admin-badge.passive {
    background: #f9fafb;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}



.admin-toggle-form {
    display: inline-block;
    margin: 0;
}

.admin-toggle-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.admin-toggle-btn.on {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.admin-toggle-btn.off {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-small-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Düzenle butonu stili */
.admin-link-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    margin-right: 6px;
}

.admin-link-btn:hover {
    background: #e5e7eb;
}


/* === Inline styles moved from admin_logs.php === */
.gd-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-block;
}


/* === Inline styles moved from admin_messages.php === */
.admin-messages-table-wrapper {
    margin-top: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
}

.admin-messages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-messages-table th,
.admin-messages-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-messages-table th {
    font-weight: 600;
    color: #4b5563;
    background: #f9fafb;
}

.admin-messages-table tr:last-child td {
    border-bottom: none;
}

.admin-messages-table .unread-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

.admin-messages-table .no-unread {
    font-size: 12px;
    color: #6b7280;
}

.admin-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid #2563eb;
    color: #2563eb;
    text-decoration: none;
    background: #eff6ff;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.admin-btn-small:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.admin-messages-top-actions {
    margin-top: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.admin-messages-new-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-messages-new-select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    min-width: 220px;
}

.admin-messages-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.admin-messages-new-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}


/* === Inline styles moved from admin_messages_archive.php === */
.archive-table-wrapper {
    margin-top: 18px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px;
}

.archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.archive-table th,
.archive-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.archive-table th {
    font-weight: 600;
    background: #f9fafb;
    color: #374151;
}

.archive-table tr:last-child td {
    border-bottom: none;
}

.archive-detail {
    white-space: pre-line;
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    margin-top: 6px;
    font-size: 13px;
    color: #334155;
}


/* === Inline styles moved from admin_messages_tools.php === */
.admin-tools-wrapper {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-tool-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-tool-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.admin-tool-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

.admin-tool-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-tool-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-tool-label {
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
}

.admin-tool-input {
    font-size: 0.9rem;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    max-width: 220px;
}

.admin-tool-warning {
    font-size: 0.8rem;
    color: #b91c1c;
}

.admin-tool-actions {
    margin-top: 6px;
}

.admin-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ef4444;
    background: #fee2e2;
    color: #b91c1c;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.admin-tool-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

.alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

@media (max-width: 800px) {
    .admin-tools-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* === Inline styles moved from admin_panel.php === */
/* ===== ADMIN DASHBOARD YENİ TASARIM ===== */

.admin-dashboard {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* HERO */
.admin-hero {
    background: radial-gradient(circle at top left, #2563eb, #0f172a 60%);
    border-radius: 18px;
    padding: 18px 20px 16px;
    color: #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
    gap: 18px;
    align-items: center;
}

.admin-hero-left-kicker {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #bfdbfe;
    margin-bottom: 6px;
}

.admin-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 6px;
}

.admin-hero-sub {
    font-size: 13px;
    line-height: 1.6;
    color: #e5e7eb;
    opacity: 0.93;
    margin-bottom: 10px;
}

.admin-hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-hero-pill {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(191, 219, 254, 0.5);
    background: rgba(15, 23, 42, 0.55);
    color: #e5e7eb;
}

.admin-hero-right-card {
    background: rgba(15, 23, 42, 0.75);
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.admin-hero-right-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #bfdbfe;
    font-weight: 600;
}

.admin-hero-right-title span {
    font-size: 15px;
}

.admin-hero-right-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.admin-hero-stat-item {
    font-size: 11px;
    color: #e5e7eb;
    opacity: 0.9;
}

.admin-hero-stat-item strong {
    display: block;
    font-size: 13px;
    color: #f9fafb;
}

/* ANA İSTATİSTİK GRID */
.admin-stat-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.admin-stat-section-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.admin-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
}

.admin-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.admin-stat-sub {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .admin-stat-value {
        font-size: 28px;
    }
}

/* KISMIK GRIDLER */
.admin-stat-grid.small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* HIZLI KISAYOLLAR */
.admin-quick-actions {
    margin-top: 0;
    margin-bottom: 8px;
}

.admin-quick-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.admin-quick-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .admin-quick-title {
        font-size: 18px;
    }

    .admin-quick-desc {
        font-size: 13px;
        margin-bottom: 16px;
    }
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

@media (max-width: 1024px) {
    .admin-actions-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

.admin-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    transition: all 0.2s ease;
    min-height: 80px;
    justify-content: center;
}

.admin-action-card span {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1.4;
}

.admin-action-card strong {
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.admin-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}



/* RESPONSIVE */
/* RESPONSIVE - Admin Panel */
@media (max-width: 1200px) {
    .admin-actions-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        margin-top: 12px;
    }

    .admin-actions-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .admin-action-card {
        padding: 14px 16px;
        min-height: 70px;
        font-size: 13px;
    }

    .admin-action-card span {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .admin-actions-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-action-card {
        padding: 12px 14px;
        min-height: 65px;
    }
}


/* === Inline styles moved from admin_wallpaper_reports.php === */
.report-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e1e2e6;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.report-tab {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    font-size: 13px;
    color: #555;
    background: transparent;
}

.report-tab.active {
    background: #fff;
    border-color: #d0d3d8;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 1px solid #fff;
}

.report-tab:hover {
    background: #f0f2f5;
}

.wallpapers-goto-btn {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    background: #3498db;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
}

.wallpapers-goto-btn:hover {
    background: #2980b9;
}

.badge-open {
    background: #ffe3e3;
    color: #c53030;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-block;
}

.report-table th,
.report-table td {
    word-wrap: break-word;
}

@media (max-width: 768px) {

    .report-table th,
    .report-table td {
        padding: 5px 4px;
        font-size: 12px;
    }

    .wallpapers-text {
        font-size: 12px;
    }

    .wallpapers-goto-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
}


/* === Inline styles moved from admin_wallpaper_reports_closed.php === */
.report-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e1e2e6;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.report-tab {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    font-size: 13px;
    color: #555;
    background: transparent;
}

.report-tab.active {
    background: #fff;
    border-color: #d0d3d8;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 1px solid #fff;
}

.report-tab:hover {
    background: #f0f2f5;
}

.wallpapers-goto-btn {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    background: #3498db;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
}

.wallpapers-goto-btn:hover {
    background: #2980b9;
}

.badge-closed {
    background: #eafaf1;
    color: #196f3d;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-block;
}

.report-table th,
.report-table td {
    word-wrap: break-word;
}

@media (max-width: 768px) {

    .report-table th,
    .report-table td {
        padding: 5px 4px;
        font-size: 12px;
    }

    .wallpapers-text {
        font-size: 12px;
    }

    .wallpapers-goto-btn {
        padding: 4px 6px;
        font-size: 11px;
    }
}


/* === Inline styles moved from admin_user_edit.php === */
.gd-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gd-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.gd-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.gd-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.gd-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.gd-btn-primary {
    background: #2563eb;
    color: white;
}

.gd-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.gd-col {
    flex: 1;
    min-width: 330px;
}

.badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    display: inline-block;
    margin-top: 4px;
}


/* === Inline styles moved from badges.php === */
/* Tab menü */
.tab-item {
    padding: 8px 14px;
    background: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #2c3e50;
    white-space: nowrap;
    border: 1px solid #e3e6ea;
    transition: 0.2s ease;
}

.tab-item:hover {
    background: #e9ecef;
}

.tab-active {
    background: #27ae60 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Sayfa düzeni */
.badges-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Rozet alanı üstte */
.badges-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px 16px 12px;
    border: 1px solid #e5e7eb;
}

/* Rozetleri yatay ve wrap şekilde diz */
.badge-list-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

/* Her rozet kartı */
.badge-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    background: #ffffff;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 240px;
    /* min 240px, kalan alanı paylaş */
    max-width: 280px;
    /* çok büyümesin */
    box-sizing: border-box;
}

.badge-card.locked {
    opacity: 0.7;
    background: #f9fafb;
}

.badge-title {
    font-weight: 600;
    font-size: 13px;
}

.badge-chip {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #374151;
}

.badge-chip.unlocked {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
    font-weight: 600;
}

.badge-progress-wrapper {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.badge-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width .2s;
}

.badge-progress-text {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

/* Özet tablo alanı */
.summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

/* Tek tablo */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.summary-table th,
.summary-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-table th {
    text-align: left;
    font-weight: 600;
    color: #374151;
    width: 50%;
}

.summary-table td {
    text-align: right;
    color: #111827;
    font-weight: 500;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
    border-bottom: none;
}

/* Küçük ekran düzeni */
@media (max-width: 640px) {
    .badge-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .summary-table th,
    .summary-table td {
        font-size: 12px;
        padding: 6px 6px;
    }
}


/* === Inline styles moved from blog.php === */
/* ==== BLOG SAYFASI – MESAJ SAYFASINA GÖRE HİZALAMA ==== */

.blog-page {
    margin-top: 20px;
    /* messages-page ile uyumlu */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Üst başlık bloğu (Mesajlar başlığına benzer) */
.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.blog-header-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

.blog-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.blog-header-right {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Ana kart (messages-wrapper gibi) */
.blog-wrapper {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Kategori nav (mesaj sayfası içindeki liste üstü gibi) */
.blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.blog-cat-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    background: #f9fafb;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.blog-cat-pill:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.blog-cat-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

/* Başlık satırı (yazı sayısı + kategori adı) */
.blog-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.blog-heading-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.blog-heading-sub {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Yazı listesi – kartlar mesaj kartları ile uyumlu */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.blog-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

/* Üst satır: kategori + tarih */
.blog-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.blog-cat-label {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-date {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Başlık + özet */
.blog-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.blog-post-title a {
    text-decoration: none;
    color: inherit;
}

.blog-post-title a:hover {
    color: #2563eb;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
}

/* Alt satır: linkler */
.blog-readmore-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 6px;
    font-size: 0.8rem;
}

.blog-readmore {
    font-size: 0.85rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-readmore:hover {
    text-decoration: underline;
}

.blog-empty {
    font-size: 0.95rem;
    color: #6b7280;
}

/* Responsive – messages ile uyumlu basit dokunuş */
@media (max-width: 640px) {
    .blog-header {
        align-items: flex-start;
    }
}


/* === Inline styles moved from blog_view.php === */
/* ===== BLOG VIEW GENEL LAYOUT ===== */
.blog-view-page {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* HERO BÖLÜMÜ (başlık + kategori + tarih + geri link) */
.blog-view-hero {
    background: radial-gradient(circle at top left, #2563eb, #0f172a 60%);
    border-radius: 16px;
    padding: 16px 18px 14px;
    color: #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-view-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.blog-view-hero-breadcrumb {
    font-size: 11px;
    color: #bfdbfe;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.blog-view-hero-breadcrumb a {
    color: #e5e7eb;
    text-decoration: none;
}

.blog-view-hero-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-view-back-link {
    font-size: 12px;
    color: #e5e7eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(191, 219, 254, 0.5);
    background: rgba(15, 23, 42, 0.5);
}

.blog-view-back-link:hover {
    background: rgba(15, 23, 42, 0.9);
}

.blog-view-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 4px;
}

.blog-view-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #e5e7eb;
    opacity: 0.95;
}

.blog-view-date-pill {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-variant-numeric: tabular-nums;
}

.blog-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(239, 246, 255, 0.95);
    color: #1d4ed8;
    text-decoration: none;
    border: 1px solid #bfdbfe;
}

.blog-cat-pill:hover {
    background: #dbeafe;
}

/* İÇERİK KARTI */
.blog-view-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-view-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e4ea;
    padding: 18px 20px 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-size: 15px;
    color: #111827;
    line-height: 1.7;
}

.blog-view-content p {
    margin-bottom: 10px;
}

.blog-view-content h1,
.blog-view-content h2,
.blog-view-content h3,
.blog-view-content h4 {
    margin-top: 16px;
    margin-bottom: 8px;
}

.blog-view-content ul,
.blog-view-content ol {
    margin: 8px 0 10px 20px;
}

.blog-view-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}

.blog-view-footer-nav a {
    color: #2563eb;
    text-decoration: none;
}

.blog-view-footer-nav a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .blog-view-page {
        margin-top: 14px;
    }

    .blog-view-card {
        padding: 14px 14px 16px;
    }

    .blog-view-hero-title {
        font-size: 20px;
    }
}


/* === Inline styles moved from daily_goal_settings.php === */
.settings-wrapper {
    margin-top: 20px;
    max-width: 520px;
}

.settings-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #e1e4eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.settings-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.settings-card p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.form-row {
    margin-bottom: 14px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #4b5563;
}

.form-row input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    outline: none;
    transition: border-color 0.15s ease;
}

.form-row input[type="number"]:focus {
    border-color: #2563eb;
}

.btn-primary {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.settings-help {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.alert.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.alert.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}


/* === Inline styles moved from dashboard.php === */
.tab-item {
    padding: 8px 14px;
    background: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    color: #2c3e50;
    white-space: nowrap;
    border: 1px solid #e3e6ea;
    transition: 0.2s ease;
}

.tab-item:hover {
    background: #e9ecef;
}

.tab-active {
    background: #27ae60 !important;
    color: #fff !important;
    border-color: #27ae60 !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Sol taraftaki butonlar için stil */
.side-shortcut-link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e3e6ea;
    font-size: 14px;
    text-decoration: none;
    color: #2c3e50;
    margin-bottom: 6px;
    transition: 0.2s ease;
}

.side-shortcut-link:hover {
    background: #e9ecef;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

.form-note {
    font-size: 11px;
    color: #9ca3af;
}

.form-message {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.form-message.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}


/* === Inline styles moved from debug_cevaplar.php === */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-bottom: 10px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    font-size: 13px;
    vertical-align: top;
}

th {
    background: #f0f0f0;
    text-align: left;
}

tr:nth-child(even) {
    background: #fafafa;
}

.tag-dogru {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: #2ecc71;
    color: #fff;
}

.tag-yanlis {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    background: #e74c3c;
    color: #fff;
}

.no-data {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    font-size: 13px;
}


/* === Inline styles moved from debug_kategori_ozet.php === */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-bottom: 10px;
}

table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    font-size: 13px;
}

th {
    background: #f0f0f0;
    text-align: left;
}

tr:nth-child(even) {
    background: #fafafa;
}

.no-data {
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    font-size: 13px;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

h1 {
    font-size: 20px;
    margin: 0 0 4px 0;
}

.subtitle {
    font-size: 13px;
    color: #666;
}

#timer {
    font-size: 22px;
    font-weight: 700;
    color: #e53935;
}

.question-card {
    background: #fdfdfd;
    border-radius: 10px;
    border: 1px solid #ececec;
    padding: 12px 12px 10px;
    margin-bottom: 10px;
}

.question-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.option-row {
    font-size: 13px;
    padding: 3px 0;
}

.option-row label {
    cursor: pointer;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-secondary {
    background: #f0f1f5;
    color: #333;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f1f5;
    color: #555;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h1 {
    font-size: 20px;
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #e9f2ff;
    color: #1a73e8;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.summary-item {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 12px;
}

.summary-label {
    font-size: 12px;
    color: #555;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.summary-value.green {
    color: #27ae60;
}

.summary-value.red {
    color: #e74c3c;
}

.summary-value.gray {
    color: #7f8c8d;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f1f5;
    color: #555;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-secondary {
    background: #f0f1f5;
    color: #333;
}

.percent-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #27ae60;
}

.percent-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.question-list {
    margin-top: 8px;
}

.question-item {
    border-radius: 10px;
    padding: 12px 12px 10px;
    margin-bottom: 10px;
    background: #fdfdfd;
    border: 1px solid #ececec;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.question-header h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 600;
}

.q-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.q-status.correct {
    background: #eafaf0;
    color: #27ae60;
}

.q-status.wrong {
    background: #fdecea;
    color: #e74c3c;
}

.q-status.empty {
    background: #f5f5f5;
    color: #7f8c8d;
}

.q-options {
    margin-top: 4px;
    font-size: 13px;
}

.q-option {
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 2px;
}

.q-option span.label {
    font-weight: 600;
    margin-right: 4px;
}

.q-option.correct-answer {
    font-weight: 600;
    text-decoration: underline;
}

.q-option.user-answer-correct {
    background: #eafaf0;
}

.q-option.user-answer-wrong {
    background: #fdecea;
}

.q-footer {
    margin-top: 4px;
    font-size: 11px;
    color: #6b7280;
}

.cozum-box {
    margin-top: 6px;
    font-size: 12px;
    color: #374151;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 8px;
    border: 1px solid #e5e7eb;
}

.cozum-title {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 3px;
}

@media (max-width:600px) {
    .percent-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}



body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 20px;
}

.page-wrapper {
    width: 100%;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.card-header h1 {
    font-size: 20px;
    margin: 0;
}

.sub-info {
    font-size: 13px;
    color: #555;
    margin-top: 3px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0f1f5;
    color: #555;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.filter-btn {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: #333;
}

.filter-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    background: #f0f1f5;
    color: #333;
}

.question-list {
    margin-top: 5px;
}

.question-item {
    border-radius: 10px;
    padding: 12px 12px 10px;
    margin-bottom: 10px;
    background: #fdfdfd;
    border: 1px solid #ececec;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.question-header h3 {
    font-size: 14px;
    margin: 0;
}

.q-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.q-status.correct {
    background: #eafaf0;
    color: #27ae60;
}

.q-status.wrong {
    background: #fdecea;
    color: #e74c3c;
}

.q-status.empty {
    background: #f5f5f5;
    color: #7f8c8d;
}

.q-options {
    margin-top: 4px;
    font-size: 13px;
}

.q-option {
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 2px;
}

.q-option span.label {
    font-weight: 600;
    margin-right: 4px;
}

.q-option.correct-answer {
    font-weight: 600;
    text-decoration: underline;
}

.q-option.user-answer-correct {
    background: #eafaf0;
}

.q-option.user-answer-wrong {
    background: #fdecea;
}

.cozum {
    margin-top: 6px;
    font-size: 12px;
    color: #555;
    background: #f8f9fb;
    border-radius: 8px;
    padding: 6px 8px;
}





/* Küçük responsive dokunuş */
@media (max-width: 640px) {
    .exams-header {
        align-items: flex-start;
    }
}


/* === Inline styles moved from favorites.php === */
.favorites-page {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.favorites-header-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.favorites-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.favorites-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
}

.favorites-count {
    font-size: 0.9rem;
    color: #64748b;
}

.favorites-sub {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #6b7280;
}

.favorites-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    margin-top: 6px;
}

.favorites-empty {
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
    padding: 18px 16px;
    text-align: center;
    font-size: 0.95rem;
    color: #6b7280;
}

.favorites-empty strong {
    color: #0f172a;
}

.favorites-empty a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.favorites-empty a:hover {
    text-decoration: underline;
}

.favorites-list-wrapper {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
}

.favorites-list-header {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.favorites-list-header span {
    font-weight: 500;
    color: #0f172a;
}


/* === Inline styles moved from home.php === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ----- GENEL LAYOUT ----- */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #1a252f;
    color: #ecf0f1;
    border-bottom: 3px solid #27ae60;
}

.topbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

nav ul {
    display: flex;
    gap: 0.5rem;
}

nav li {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
}

nav li:hover {
    background: rgba(236, 240, 241, 0.18);
}

nav li.active {
    background: #27ae60;
    color: #fff;
}

main {
    flex: 1;
    padding: 1.5rem 1rem 2rem;
}

.content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1rem;
}

/* Dar ekranlarda tek kolon */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ----- SOL YAN PANEL (FİLTRE / ÖZET) ----- */

.sidebar {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    padding: 1rem;
}

.sidebar h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.sidebar-section {
    margin-bottom: 1rem;
}

.chip {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin: 0.15rem 0.15rem 0 0;
    background: #ecf0f1;
}

.chip--highlight {
    background: #f1c40f;
    /* Konu özetleri için sarı */
    color: #000;
    font-weight: 600;
}

/* ----- ANA İÇERİK ----- */

.content {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    padding: 1.25rem 1.25rem 1.5rem;
    min-height: 400px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.content-header h1 {
    font-size: 1.25rem;
}

.content-header small {
    color: #7f8c8d;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #ecf0f1;
}

.badge--green {
    background: #27ae60;
    color: #fff;
}

.badge--red {
    background: #e74c3c;
    color: #fff;
}

.badge--yellow {
    background: #f1c40f;
    color: #000;
}

.section {
    display: none;
    /* JS ile aktif olan gösterilecek */
}

.section.active-section {
    display: block;
}

/* ----- ANA SAYFA: ÖNE ÇIKAN SORULAR ----- */

.question-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.question-card {
    border-radius: 0.75rem;
    border: 1px solid #dfe6e9;
    padding: 0.75rem 0.9rem;
    background: #fbfbfd;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.3rem;
}

.question-meta span {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.wallpapers-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

@media (max-width: 600px) {
    .options {
        grid-template-columns: 1fr;
    }
}

.option {
    padding: 0.4rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #dcdde1;
    font-size: 0.9rem;
    cursor: pointer;
    background: #ffffff;
}

.option:hover {
    background: #f5f6fa;
}

/* Doğru / yanlış durumları */
.option.correct {
    border-color: #27ae60;
    background: #eafaf1;
}

.option.incorrect {
    border-color: #e74c3c;
    background: #fdecea;
}

.solution {
    margin-top: 0.5rem;
    padding: 0.5rem 0.6rem;
    border-left: 3px solid #27ae60;
    background: #f0fdf4;
    font-size: 0.85rem;
}

.solution strong {
    display: block;
    margin-bottom: 0.2rem;
}

/* ----- HAKKIMIZDA ----- */

.about-block {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1rem;
}

@media (max-width: 800px) {
    .about-block {
        grid-template-columns: 1fr;
    }
}

.about-text p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.note-yellow {
    margin-top: 0.5rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.5rem;
    background: #fef5d4;
    /* Sarı tonlu kutu */
    border: 1px solid #f1c40f;
    font-size: 0.85rem;
}

.stats-box {
    border-radius: 0.75rem;
    background: #f5f6fa;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.stats-row span:last-child {
    font-weight: 600;
}

/* ----- KATEGORİLER ----- */

.category-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 700px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    border-radius: 0.75rem;
    border: 1px solid #dfe6e9;
    padding: 0.75rem 0.9rem;
    background: #fbfbfd;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.category-card h3 {
    font-size: 0.95rem;
}

.category-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
    display: flex;
    justify-content: space-between;
}

.category-actions {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    background: #ecf0f1;
}

.btn-green {
    background: #27ae60;
    color: #fff;
}

.btn-red {
    background: #e74c3c;
    color: #fff;
}

.btn-yellow {
    background: #f1c40f;
    color: #000;
}

.btn-outline {
    background: #ffffff;
    border: 1px solid #dfe6e9;
}

footer {
    margin-top: auto;
    background: #1a252f;
    color: #95a5a6;
    font-size: 0.8rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.3rem;
}


/* === Inline styles moved from index.php === */
/* ==== ANA SAYFA GENEL ==== */
.home-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-hero {
    background: linear-gradient(135deg, #1d86ff, #4cc0ff);
    border-radius: 16px;
    padding: 24px 24px 28px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    /* sayaç için gerekli */
    padding-top: 56px;
    /* üstte sayaç + başlık boşluğu */
}

.home-hero-left {
    max-width: 540px;
}

.home-hero-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.home-hero-sub {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 18px;
    line-height: 1.5;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #fff;
    color: #1260d6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.btn-primary span,
.btn-outline span {
    margin-left: 6px;
    font-size: 15px;
}

.home-hero-right {
    min-width: 220px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
}

.home-hero-right-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.home-hero-label {
    opacity: 0.9;
}

.home-hero-value {
    font-weight: 700;
}

/* ==== SINAVA KALAN SÜRE KARTI ==== */
.exam-countdown {
    background: #fefce8;
    color: #854d0e;
    border-radius: 12px;
    border: 1px solid #facc15;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.exam-countdown-icon {
    font-size: 18px;
}

.exam-countdown-text strong {
    font-weight: 700;
}

/* Sayaç - HERO sağ üst köşede */
.exam-countdown-hero {
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
}

/* ==== İSTATİSTİK KARTLARI ==== */
.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 16px 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #e3e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-stat-label {
    font-size: 13px;
    color: #475569;
}

.home-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.home-stat-sub {
    font-size: 12px;
    color: #475569;
}

/* ==== KATEGORİLER BÖLÜMÜ ==== */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.home-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.home-section-sub {
    font-size: 13px;
    color: #4b5563;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 14px 12px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    color: #0f172a;
    min-height: 150px;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10);
    border-color: #3b82f6;
}

.category-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0f172a;
}

.category-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-meta {
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 8px;
}

.category-meta strong {
    color: #111827;
}

.category-actions {
    display: flex;
    justify-content: flex-end;
}

.category-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.category-card:hover .category-btn {
    background: #3b82f6;
    color: #fff;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.category-empty {
    background: #fff;
    border-radius: 12px;
    padding: 18px 16px;
    border: 1px dashed #cbd5e1;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}

.category-empty strong {
    color: #0f172a;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 960px) {
    .home-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-hero-right {
        width: 100%;
    }

    .home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-hero {
        padding: 18px 16px 20px;
        padding-top: 64px;
        /* mobilde biraz daha boşluk */
    }

    .home-hero-title {
        font-size: 22px;
    }

    .home-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .category-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Mobilde sayaç sabit değil, içerik içinde */
    .exam-countdown-hero {
        position: static;
        margin-bottom: 10px;
        width: 100%;
    }
}


/* === Inline styles moved from leaderboard.php === */
.leader-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px;
    background: #f1f3f5;
    border-radius: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.leader-tab {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #dfe4ea;
    background: #ffffff;
    color: #2c3e50;
    white-space: nowrap;
    transition: 0.15s ease;
}

.leader-tab:hover {
    background: #e9ecef;
}

.leader-tab-active {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.leader-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e1e4ea;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.leader-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.leader-card p {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.leader-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.leader-table th,
.leader-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ecf0f1;
    text-align: left;
}

.leader-table th {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.leader-rank {
    width: 36px;
    text-align: center;
    font-weight: 600;
}

.leader-me {
    background: #fef9e7;
}

.leader-username {
    font-weight: 500;
}

.badge-me {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    background: #27ae60;
    color: #fff;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .leader-card {
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .leader-card h2 {
        font-size: 16px;
    }

    .leader-card p {
        font-size: 12px;
    }

    .leader-tabs {
        gap: 6px;
        padding: 4px;
        margin-bottom: 12px;
    }

    .leader-tab {
        padding: 6px 10px;
        font-size: 12px;
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .leader-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .leader-table thead {
        display: table-header-group;
    }

    .leader-table tbody {
        display: table-row-group;
    }

    .leader-table tr {
        display: table-row;
    }

    .leader-table th,
    .leader-table td {
        display: table-cell;
        padding: 8px 6px;
        white-space: nowrap;
    }

    .leader-table th {
        font-size: 11px;
        padding: 8px 4px;
    }

    .leader-rank {
        width: 32px;
        min-width: 32px;
    }

    .leader-username {
        font-size: 12px;
        min-width: 100px;
    }

    .badge-me {
        font-size: 9px;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .leader-table {
        font-size: 11px;
    }

    .leader-table th,
    .leader-table td {
        padding: 6px 4px;
    }

    .leader-table th:nth-child(5),
    .leader-table td:nth-child(5) {
        display: none;
        /* Yanlış kolonunu küçük ekranlarda gizle */
    }

    .leader-rank {
        width: 28px;
        min-width: 28px;
        font-size: 11px;
    }

    .leader-username {
        font-size: 11px;
        min-width: 80px;
    }
}

@media (max-width: 600px) {

    .leader-table th:nth-child(4),
    .leader-table td:nth-child(4) {
        display: none;
        /* istersen yanlış kolonu mobile gizle */
    }
}


/* === Inline styles moved from login.php === */
/* Register sayfasındaki yapıya benzer grid */
.auth-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dcdde1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.auth-form-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 12px;
    border-right: 1px dashed #ecf0f1;
}

.auth-info {
    padding-left: 12px;
}

.auth-form-title {
    font-size: 18px;
    font-weight: 700;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.alert-danger {
    background: #ffeded;
    border: 1px solid #ffb4b4;
    color: #b33939;
}

.alert-success {
    background: #e9f9ef;
    border: 1px solid #b5e0c4;
    color: #2d7a46;
}

.auth-group {
    margin-bottom: 10px;
}

.auth-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.btn-primary-auth {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.btn-primary-auth:hover {
    background: #219150;
}

.auth-links {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-links a {
    color: #2c3e50;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Sağ bilgi alanı – login’e uygun */
.auth-info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-info-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-badge {
    font-size: 11px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f0f9f3;
    border: 1px solid #cdeed8;
    color: #24734b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
}

.auth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auth-list-bullet {
    margin-top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
}

.auth-footnote {
    margin-top: 16px;
    font-size: 12px;
    color: #888;
}

/* Mobil düzeltmeler */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 12px 18px;
        gap: 18px;
    }

    .auth-form-area {
        border-right: none;
        border-bottom: 1px dashed #ecf0f1;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 4px;
    }

    .auth-info {
        padding-left: 0;
    }
}


/* === Inline styles moved from members.php === */
.members-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.members-top {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 18px 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
}

.members-top-left {
    flex: 2;
    min-width: 260px;
}

.members-top-right {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.members-greeting {
    font-size: 17px;
    color: #111827;
    margin-bottom: 2px;
    font-weight: 600;
    line-height: 1.4;
}

.members-tagline {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.5;
}

.members-tagline strong {
    color: #111827;
    font-weight: 600;
}

.members-top-metrics {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.pill-metric {
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pill-metric:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.pill-metric-icon {
    font-size: 16px;
    line-height: 1;
}

.pill-metric-label {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.pill-metric-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-left: auto;
}

.pill-metric-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #86efac;
}

.pill-metric-success .pill-metric-value {
    color: #16a34a;
}

.pill-metric-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

.pill-metric-error .pill-metric-value {
    color: #dc2626;
}

.pill-metric-primary {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.pill-metric-primary .pill-metric-value {
    color: #2563eb;
}

.pill-metric-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #7dd3fc;
}

.pill-metric-info .pill-metric-value {
    color: #0284c7;
}

/* Üyelik kartı */
.membership-card {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.membership-card.premium {
    background: #fffbeb;
    border-color: #fbbf24;
}

.membership-card.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.membership-card.expired {
    background: #fee2e2;
    border-color: #ef4444;
}

.membership-header {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 4px;
}

.membership-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.membership-plan-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.membership-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.membership-meta-bottom {
    margin-top: 4px;
}

.membership-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    color: #374151;
    white-space: nowrap;
}

.membership-tag-premium {
    background: #fef3c7;
    color: #92400e;
}

.membership-tag-free {
    background: #e5e7eb;
    color: #374151;
}

.membership-tag-warning {
    background: #fef3c7;
    color: #92400e;
}

.membership-tag-expired {
    background: #fee2e2;
    color: #b91c1c;
}

.membership-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-upgrade {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-upgrade-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-upgrade-secondary {
    background: #111827;
    color: #ffffff;
}

.mini-summary-card {
    border-radius: 12px;
    padding: 10px 12px;
    border: 1px dashed #e5e7eb;
    background: #f9fafb;
    font-size: 12px;
    color: #4b5563;
}

.mini-summary-card div+div {
    margin-top: 4px;
}

/* Alt grid */
.members-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 16px;
}

@media (max-width: 800px) {
    .members-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.members-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 16px 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.members-card h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #111827;
}

/* Sol performans kartı */
.shortcut-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.shortcut-tab {
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    border: 1px solid #e3e6ea;
    transition: 0.2s ease;
    white-space: nowrap;
}

.shortcut-tab:hover {
    background: #e5e7ef;
}

.info-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.stat-item {
    padding: 14px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.stat-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.stat-good {
    color: #16a34a;
}

.stat-bad {
    color: #dc2626;
}

.performance-categories-title {
    font-size: 14px;
    margin-top: 16px;
    color: #111827;
    font-weight: 600;
}

.category-mini-list {
    margin-top: 6px;
    list-style: none;
    padding: 0;
}

.category-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.category-mini-item:hover {
    background-color: #f8fafc;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.category-mini-item:last-child {
    border-bottom: none;
}

.category-mini-name {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.category-mini-stats {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.info-hint {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.info-hint a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.info-hint a:hover {
    text-decoration: underline;
}

.info-hint-spacing {
    margin-top: 14px;
}

.info-hint-spacing-bottom {
    margin-top: 12px;
}

.members-shortcuts-row {
    margin-top: 10px;
}

.btn-link-soft-spacing {
    margin-left: 10px;
}

/* Sağ kart sekmeleri vs. */
.pill-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px;
    background: #f3f4f6;
    border-radius: 999px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.pill-tab {
    padding: 7px 12px;
    background: #ffffff;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    color: #374151;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    transition: 0.2s ease;
}

.pill-tab:hover {
    background: #e9ecef;
}

.pill-tab-active {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
}

.info-value {
    color: #111827;
    text-align: right;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-admin {
    background: #fee2e2;
    color: #b91c1c;
    margin-left: 6px;
}

/* Form */
.settings-block {
    margin-top: 16px;
}

.settings-block h3 {
    font-size: 14px;
    margin-bottom: 6px;
    color: #111827;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

/* Settings form stilleri form-group'u override eder */
.settings-form-group input[type="text"],
.settings-form-group input[type="email"],
.settings-form-group input[type="password"],
.settings-form-group input[type="number"] {
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.settings-form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-note {
    font-size: 11px;
    color: #9ca3af;
}

.form-message {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.form-message.success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Mesajlaşma Ayarları Özel Stilleri */
.message-setting-form {
    margin-top: 8px;
}

.message-setting-group {
    margin-bottom: 20px;
}

.message-setting-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.message-setting-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

.message-setting-select:hover {
    border-color: #cbd5e1;
    background-color: #f9fafb;
}

.message-setting-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
}

.message-setting-select option {
    padding: 10px;
    font-weight: 500;
}

.message-setting-info {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.message-setting-info-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.message-setting-info-item:not(:last-child) {
    margin-bottom: 8px;
}

.message-setting-info-item:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: #cbd5e1;
}

.message-setting-info-item.message-setting-info-active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.message-setting-info-item.message-setting-info-active .message-setting-info-content strong {
    color: #1e40af;
}

.message-setting-info-item.message-setting-info-active .message-setting-info-content p {
    color: #1e3a8a;
}

.message-setting-info-icon {
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

.message-setting-info-content {
    flex: 1;
}

.message-setting-info-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.message-setting-info-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.message-setting-submit {
    margin-top: 16px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.message-setting-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .message-setting-info {
        padding: 12px;
    }

    .message-setting-info-item {
        gap: 10px;
        padding: 10px 0;
    }

    .message-setting-info-icon {
        font-size: 18px;
    }

    .message-setting-select {
        padding: 10px 14px;
        padding-right: 36px;
    }
}

/* Genel Ayarlar Form Stilleri (Günlük Hedef, E-posta, Şifre) */
.settings-form {
    margin-top: 8px;
}

.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.settings-form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.settings-form-input::placeholder {
    color: #9ca3af;
}

.settings-form-input:hover {
    border-color: #cbd5e1;
    background-color: #f9fafb;
}

.settings-form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: #ffffff;
}

.settings-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.settings-input-wrapper .settings-form-input {
    padding-right: 80px;
}

.settings-input-suffix {
    position: absolute;
    right: 16px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    pointer-events: none;
}

.settings-form-info {
    margin-top: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.settings-form-info-icon {
    font-size: 16px;
    line-height: 1.2;
    flex-shrink: 0;
}

.settings-form-info-content {
    flex: 1;
}

.settings-form-info-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.settings-form-submit {
    margin-top: 16px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.settings-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

@media (max-width: 640px) {
    .settings-form-input {
        padding: 10px 14px;
    }

    .settings-input-wrapper .settings-form-input {
        padding-right: 70px;
    }

    .settings-input-suffix {
        font-size: 12px;
        right: 14px;
    }

    .settings-form-info {
        padding: 10px 12px;
    }
}

.info-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Yanlış özet kartı */
.wrong-overview-card {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    font-size: 12px;
    color: #7f1d1d;
}

.wrong-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.wrong-overview-title {
    font-weight: 600;
    font-size: 13px;
    color: #991b1b;
}

.wrong-overview-tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    white-space: nowrap;
}

.wrong-overview-body {
    font-size: 12px;
    color: #7f1d1d;
}

.wrong-overview-list {
    margin: 6px 0 0;
    padding-left: 14px;
}

.wrong-overview-list li {
    margin-bottom: 2px;
}

.wrong-overview-actions {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #9f1239;
}

.btn-link-soft {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #ffffff;
    font-size: 12px;
    color: #b91c1c;
    text-decoration: none;
    font-weight: 500;
}

.btn-link-soft:hover {
    background: #fee2e2;
}


/* === Inline styles moved from message_new.php === */
.message-new-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.message-new-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.message-new-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-new-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

.message-new-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.message-new-wrapper {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
}

.message-alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.message-alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.message-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.message-form-input,
.message-form-select,
.message-form-textarea {
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.message-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.message-form-subinfo {
    font-size: 0.8rem;
    color: #6b7280;
}

.message-form-static {
    font-size: 0.9rem;
    color: #111827;
}

.message-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.btn-primary-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.btn-primary-submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}


/* === Inline styles moved from messages_inbox.php === */
.messages-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.messages-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.messages-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.messages-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
}

.messages-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.messages-actions {
    display: flex;
    gap: 8px;
}

.messages-wrapper {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
}

.messages-empty {
    font-size: 0.95rem;
    color: #6b7280;
}

.message-thread {
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    background: #f9fafb;
}

.message-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.message-thread-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.message-thread-unread {
    font-size: 0.8rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

.message-thread-unread-empty {
    font-size: 0.8rem;
    color: #9ca3af;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
}

.message-card-unread {
    border-color: #3b82f6;
    background: #eff6ff;
}

.message-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #6b7280;
}

.message-parties {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.message-from-to {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.message-from {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.message-from strong {
    color: #111827;
}

.message-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.message-direction-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #e5e7eb;
    color: #374151;
    font-weight: 500;
}

.message-direction-out {
    background: #dbeafe;
    color: #1d4ed8;
}

.message-direction-in {
    background: #fee2e2;
    color: #b91c1c;
}

.message-direction-system {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.message-subject {
    font-weight: 600;
    color: #111827;
}

.message-subject-empty {
    font-style: italic;
    color: #9ca3af;
}

.message-body {
    line-height: 1.6;
    color: #2c3e50;
}

.message-body p {
    margin: 0 0 12px 0;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-body code {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    display: inline-block;
}

.message-body a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

.message-body a:hover {
    text-decoration: underline;
}

.message-body strong {
    font-weight: 600;
    color: #2c3e50;
}

.message-body ul,
.message-body ol {
    margin: 8px 0;
    padding-left: 24px;
}

.message-body li {
    margin: 4px 0;
}

.message-body {
    color: #374151;
    line-height: 1.4;
}

.message-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.message-reply-link {
    font-size: 0.8rem;
    text-decoration: none;
    color: #2563eb;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.message-reply-link:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}

.message-delete-form {
    margin: 0;
}

.message-delete-btn {
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.message-delete-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #b91c1c;
}

.btn-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.btn-primary-link:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.messages-alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.messages-alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.messages-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* admin panel genişliğiyle uyum için küçük responsive dokunuş */
@media (max-width: 640px) {
    .messages-header {
        align-items: flex-start;
    }

    .message-top-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* === Inline styles moved from official_exams.php === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f6fa;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 100%;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e0e0e0;
}

h1 {
    font-size: 20px;
    margin: 0 0 8px;
}

.subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.exam-item {
    border-radius: 10px;
    border: 1px solid #ececec;
    background: #fdfdfd;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.exam-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.exam-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.btn {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}


/* === Inline styles moved from password_reset.php === */
.auth-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dcdde1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.auth-form-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 12px;
    border-right: 1px dashed #ecf0f1;
}

.auth-info {
    padding-left: 12px;
}

.auth-form-title {
    font-size: 18px;
    font-weight: 700;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.alert-danger {
    background: #ffeded;
    border: 1px solid #ffb4b4;
    color: #b33939;
}

.alert-success {
    background: #e9f9ef;
    border: 1px solid #b5e0c4;
    color: #2d7a46;
}

.auth-group {
    margin-bottom: 10px;
}

.auth-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.btn-primary-auth {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.btn-primary-auth:hover {
    background: #219150;
}

.auth-links {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-links a {
    color: #2c3e50;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Sağ bilgi alanı */
.auth-info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-info-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.auth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auth-list-bullet {
    margin-top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
}

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 12px 18px;
        gap: 18px;
    }

    .auth-form-area {
        border-right: none;
        border-bottom: 1px dashed #ecf0f1;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 4px;
    }

    .auth-info {
        padding-left: 0;
    }
}


/* === Inline styles moved from wallpapers_list.php === */
.filter-bar {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 500;
}

.filter-select-wrapper select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

.view-toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.view-toggle-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-right: 4px;
}

.view-toggle-link {
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    color: #374151;
    background: #f3f4f6;
}

.view-toggle-link:hover {
    background: #e5e7eb;
}

.view-toggle-link.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
    font-weight: 600;
}

.favorites-empty-inline {
    background: #ffffff;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.favorites-empty-inline strong {
    color: #0f172a;
}

.cat-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Üst sabit bar */
.ust-bar-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ust-bar-icerik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    gap: 12px;
}

.ust-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ust-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filtre wrapper + butonu */
.qlist-filter-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.qlist-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111827;
}

.qlist-filter-button .filter-icon {
    font-size: 1rem;
}

/* Doğru / Yanlış metinleri */
.sinav-ozet {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.sinav-dogru strong {
    color: #16a34a;
    font-weight: 700;
}

.sinav-yanlis strong {
    color: #dc2626;
    font-weight: 700;
}

/* Açılır filtre menüsü */
.qlist-filter-menu {
    position: absolute;
    top: 115%;
    left: 0;
    width: 260px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 6px 0;
    z-index: 1000;
    display: none;
}

.filter-menu-item {
    display: block;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.filter-menu-item:hover {
    background: #f3f4f6;
}

.filter-menu-item.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.filter-toggle-checkbox {
    display: none;
}

.filter-toggle-checkbox:checked+.qlist-filter-button+.qlist-filter-menu {
    display: block;
}

/* Yazı boyutu butonları */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-btn {
    padding: 4px 8px;
    font-size: 0.85rem;
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.font-btn:hover {
    background: #e5e7eb;
}

/* Günlük soru hakkı badge'i */
.limit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fef3c7;
    /* açık sarı */
    border: 1px solid #fbbf24;
    /* sarı çerçeve */
    color: #92400e;
    /* koyu kahverengi yazı */
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

.limit-badge span strong {
    font-weight: 700;
}

@media (max-width: 640px) {
    .ust-bar-icerik {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ust-bar-left,
    .ust-bar-right {
        justify-content: space-between;
        width: 100%;
    }

    .limit-badge {
        flex-wrap: wrap;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}


/* === Inline styles moved from register.php === */
/* Mobilde taşmayı azaltmak için kutunun tam genişlikte kalması */
.auth-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dcdde1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.auth-form-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 12px;
    border-right: 1px dashed #ecf0f1;
}

.auth-info {
    padding-left: 12px;
}

.auth-form-title {
    font-size: 18px;
    font-weight: 700;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.alert-danger {
    background: #ffeded;
    border: 1px solid #ffb4b4;
    color: #b33939;
}

.alert-success {
    background: #e9f9ef;
    border: 1px solid #b5e0c4;
    color: #2d7a46;
}

.auth-group {
    margin-bottom: 10px;
}

.auth-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.auth-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.auth-checkbox-row input[type="checkbox"] {
    margin-top: 2px;
}

.btn-primary-auth {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.btn-primary-auth:hover {
    background: #219150;
}

.auth-links {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-links a {
    color: #2c3e50;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Sağ bilgi alanı */
.auth-info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-info-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.auth-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.auth-badge {
    font-size: 11px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #f0f9f3;
    border: 1px solid #cdeed8;
    color: #24734b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
}

.auth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auth-list-bullet {
    margin-top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
}

.auth-footnote {
    margin-top: 16px;
    font-size: 12px;
    color: #888;
}

/* Mobil düzeltmeler */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 12px 18px;
        gap: 18px;
    }

    .auth-form-area {
        border-right: none;
        border-bottom: 1px dashed #ecf0f1;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 4px;
    }

    .auth-info {
        padding-left: 0;
    }
}


/* === Inline styles moved from reset_password.php === */
.auth-wrapper {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dcdde1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 20px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.auth-form-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 12px;
    border-right: 1px dashed #ecf0f1;
}

.auth-info {
    padding-left: 12px;
}

.auth-form-title {
    font-size: 18px;
    font-weight: 700;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.alert-danger {
    background: #ffeded;
    border: 1px solid #ffb4b4;
    color: #b33939;
}

.alert-success {
    background: #e9f9ef;
    border: 1px solid #b5e0c4;
    color: #2d7a46;
}

.auth-group {
    margin-bottom: 10px;
}

.auth-label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
}

.auth-input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.btn-primary-auth {
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.btn-primary-auth:hover {
    background: #219150;
}

.auth-links {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.auth-links a {
    color: #2c3e50;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Sağ bilgi alanı */
.auth-info-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-info-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.auth-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
}

.auth-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auth-list-bullet {
    margin-top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #27ae60;
}

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px 12px 18px;
        gap: 18px;
    }

    .auth-form-area {
        border-right: none;
        border-bottom: 1px dashed #ecf0f1;
        padding-right: 0;
        padding-bottom: 12px;
        margin-bottom: 4px;
    }

    .auth-info {
        padding-left: 0;
    }
}


/* === Inline styles moved from settings.php === */
.admin-wrapper {
    width: 100%;
    margin: 16px auto 24px;
    padding: 0 16px 24px;
}

.admin-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
}

.admin-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.settings-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 18px;
    margin-bottom: 20px;
}

.settings-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.settings-card-header {
    margin-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 6px;
}

.settings-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.settings-card-desc {
    font-size: 0.85rem;
    color: #6b7280;
}

.setting-row {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 8px;
}

.setting-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

.setting-input,
.setting-textarea,
.setting-select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    max-width: 100%;
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.setting-input:focus,
.setting-textarea:focus,
.setting-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

.setting-textarea {
    min-height: 80px;
    resize: vertical;
}

.setting-checkbox-label {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #374151;
    margin-top: 4px;
    margin-bottom: 4px;
}

.setting-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.settings-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.admin-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s, box-shadow 0.15s ease;
}

.admin-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

.admin-btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.admin-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s, box-shadow 0.15s ease;
}

.admin-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

.admin-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.05s, box-shadow 0.15s ease;
}

.admin-btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.32);
}

.admin-btn-danger:active {
    transform: translateY(0);
    box-shadow: none;
}

.alert {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .admin-wrapper {
        margin-top: 12px;
        padding: 0 10px 20px;
    }

    .admin-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .admin-title {
        font-size: 1.5rem;
    }
}


/* === Inline styles moved from subscription_plan_edit.php === */
.gd-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gd-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
}

.gd-form-row {
    margin-bottom: 14px;
}

.gd-form-row label {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

.gd-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.gd-check {
    margin-top: 6px;
}

.gd-check label {
    margin-left: 6px;
    font-size: 14px;
}

.gd-btn-save {
    background: #2563eb;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.gd-btn-back {
    background: #6b7280;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    margin-left: 8px;
}


/* === Inline styles moved from subscription_plans.php === */
.gd-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.gd-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
}

.gd-btn-add {
    background: #059669;
    color: #fff;
    padding: 9px 16px;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

table.gd-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

table.gd-table th {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    text-align: left;
}

table.gd-table td {
    padding: 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.gd-badge-active {
    background: #16a34a;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.gd-badge-passive {
    background: #d1d5db;
    color: #111;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.gd-btn-edit {
    background: #2563eb;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}


/* === Inline styles moved from user_add.php === */
.gd-form .form-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gd-form label {
    font-size: 13px;
    color: #2c3e50;
}

.gd-form input[type="text"],
.gd-form input[type="email"],
.gd-form input[type="password"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dfe6e9;
    font-size: 13px;
}

.checkbox-label {
    font-size: 13px;
    color: #2c3e50;
}

.btn-primary-local {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #3498db;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-secondary-local {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #95a5a6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}


/* === Inline styles moved from user_deleted.php === */
.user-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.user-tab {
    padding: 8px 12px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    color: #4b5563;
    background: transparent;
}

.user-tab.active {
    background: #ffffff;
    border-color: #d1d5db;
    border-bottom: 1px solid #ffffff;
    color: #111827;
    font-weight: 600;
}

.user-tab:hover {
    background: #f3f4f6;
}

.badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-block;
}

.gd-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}


/* === Inline styles moved from user_manage.php === */
.badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-block;
    margin-top: 3px;
}

.gd-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}


/* === Inline styles moved from user_stats.php === */
/* --------- GENEL SAYFA --------- */
.stats-page {
    margin-top: 20px;
}

.page-heading h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.page-heading p {
    font-size: 13px;
}

/* --------- ÜST ÖZET ALANI --------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-summary-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f7f9fc);
    border-radius: 14px;
    padding: 12px 14px 14px 14px;
    border: 1px solid #e0e4f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.stat-summary-card::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(39, 174, 96, 0.25), transparent 55%);
    opacity: 0.7;
}

.stat-summary-inner {
    position: relative;
    z-index: 2;
}

.stat-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.stat-summary-title {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ecfdf3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.stat-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.stat-summary-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* küçük alt satır info */
.stat-summary-footer {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Toplam & Bugün yan yana */
.summary-split {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.summary-col {
    flex: 1;
}

.summary-col-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
}

.summary-col-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* --------- TEK ANA KART: KATEGORİLER --------- */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #e0e4f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* info satırı */
.card-meta-line {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* Kategori satırları */
.cat-manage-row {
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #eef0f5;
    padding: 10px 12px;
    background: linear-gradient(135deg, #ffffff, #f9fafb);
}

.cat-manage-row:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff, #f7fafc);
}

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

.cat-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

/* Sol tarafta kategori bilgisi */
.cat-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.man-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.cat-mini-info {
    font-size: 11px;
    color: #6b7280;
}

/* Sağ tarafta buton */
.man-cat-actions {
    flex: 0;
    white-space: nowrap;
}

.man-cat-actions button {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.man-cat-actions button:hover {
    background: #fee2e2;
    border-color: #fecaca;
}

/* Alt kısım: sayılar + barlar */
.man-cat-counts {
    font-size: 12px;
    color: #374151;
}

/* coverage ve accuracy için iki sütun */
.cat-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .cat-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-block {
    font-size: 12px;
}

/* bar ortak */
.progress-wrapper {
    width: 100%;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    height: 8px;
    margin-top: 4px;
}

.progress-bar {
    height: 8px;
    background: #22c55e;
    width: 0%;
    transition: width 0.4s ease-out;
}

.progress-bar.accuracy {
    background: #3b82f6;
}

/* alt label */
.percent-label {
    margin-top: 2px;
    font-size: 11px;
    color: #6b7280;
}

/* küçük tag benzeri */
.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 2px 8px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #22c55e;
}

.badge-dot.red {
    background: #ef4444;
}

/* Boş veri */
.no-data {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    font-size: 13px;
    color: #856404;
}


/* === Inline styles moved from verify_email.php === */
.verify-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dcdde1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: 24px 20px;
    max-width: 480px;
    margin: 0 auto 24px auto;
}

.verify-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.verify-text {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.alert {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 8px;
}

.alert-danger {
    background: #ffeded;
    border: 1px solid #ffb4b4;
    color: #b33939;
}

.alert-success {
    background: #e9f9ef;
    border: 1px solid #b5e0c4;
    color: #2d7a46;
}

.verify-links {
    margin-top: 8px;
    font-size: 13px;
}

.verify-links a {
    color: #2c3e50;
    text-decoration: none;
}

.verify-links a:hover {
    text-decoration: underline;
}

/* ============================
   KONULAR - ÇALIŞMA ALANI
   (category_hub.php)
============================ */

.study-hub-wrapper {
    margin-top: 20px;
}

.study-hub-header {
    margin-bottom: 16px;
}

.study-hub-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.study-hub-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.study-hub-subtitle .study-hub-desc {
    display: inline-block;
    margin-top: 4px;
    color: #4b5563;
}

.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.study-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.study-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.study-card-status-top {
    font-size: 13px;
    color: #9ca3af;
}

.study-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.study-card-main-left {
    font-size: 13px;
    color: #4b5563;
}

.study-card-main-left strong {
    font-weight: 600;
}

.study-card-progress {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
}

.study-card-footer {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.study-card-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    margin-left: 4px;
}

.dual-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-workspace,
.btn-solve {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.btn-workspace {
    background: #e5f2ff;
    color: #1d4ed8;
    border: 1px solid #bcd8ff;
}

.btn-workspace:hover {
    background: #d6eaff;
}

.btn-solve {
    background: #1d4ed8;
    color: white;
    border: 1px solid #1d4ed8;
}

.btn-solve:hover {
    background: #1742b5;
}

.study-card-actions {
    margin-top: 6px;
}

.study-card-link {
    display: inline-block;
    font-size: 13px;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
}

.study-card-link:hover {
    text-decoration: underline;
}

.category-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e1e1e1;
}

.section-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.empty-box {
    padding: 14px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #777;
    font-size: 14px;
}

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

.document-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.document-icon {
    font-size: 26px;
    margin-right: 12px;
}

.document-info {
    flex-grow: 1;
}

.document-title {
    font-weight: 600;
    font-size: 15px;
}

.document-meta {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.document-actions .btn-doc {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-doc:hover {
    background: #217dbb;
}

/* ============================
   MY EXAMS PAGE (Sınavlarım)
============================ */

/* Genel kart yapısı düz */
.gd-card {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

/* Filtre barı */
.gd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: flex-end;
}

/* Tablo */
.gd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.gd-table th {
    padding: 8px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-weight: 600;
}

.gd-table td {
    padding: 8px;
    border-bottom: 1px solid #f3f4f6;
}

/* Etiketler */
.badge-completed {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
}

.badge-inprogress {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
}

/* Sil butonu */
.btn-delete {
    padding: 4px 8px;
    font-size: 11px;
    background: #f87171;
    color: white;
}

/* Küçük buton */
.btn-small {
    padding: 4px 8px;
    font-size: 11px;
}

/* Sayfalama */
.pagination {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 12px;
    color: #6b7280;
}

/* Aktif sayfa */
.page-current {
    background: #111827 !important;
    color: #fff !important;
}

/* Yeniden çöz butonu */
.btn-retry {
    padding: 4px 8px;
    font-size: 11px;
    background: #2563eb;
    color: #fff;
}

.limit-alert {
    width: 100%;
    background: #ffe5e5;
    border-left: 4px solid #d70000;
    color: #7a0000;
    padding: 10px 15px;
    margin: 10px 0 15px 0;
    border-radius: 0;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.limit-alert strong {
    color: #a00000;
}

.limit-alert-actions {
    display: flex;
    gap: 10px;
}

.limit-alert-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.limit-alert-btn-primary {
    background: #d70000;
    color: #fff !important;
}

.limit-alert-btn-outline {
    border: 1px solid #d70000;
    color: #d70000 !important;
    background: #fff;
}

.gd-btn-back {
    display: inline-block;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ddd;
}

.gd-btn-back:hover {
    background: #e9e9e9;
}

.gd-alert-success {
    padding: 10px 14px;
    border-radius: 6px;
    background: #e6f4ea;
    color: #256029;
    border: 1px solid #badbcc;
    font-size: 14px;
}

.reklam-kutusu {
    margin: 20px 0;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.reklam-placeholder {
    height: 90px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.9rem;
}

.reklam-mini {
    margin: 10px 0;
    text-align: center;
}

.reklam-placeholder-mini {
    height: 50px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #64748b;
}

.reklam-banner {
    margin: 20px 0;
    text-align: center;
}

.questions-ad-top,
.questions-ad-bottom {
    margin: 16px 0;
    text-align: center;
}

.cozum-locked-wrapper {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed #fbbf24;
    background: #fffbeb;
    /* açık sarı */
}

.cozum-btn-locked {
    width: 100%;
    justify-content: center;
    background: #f59e0b;
    border-color: #d97706;
    color: #111827;
    font-weight: 600;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

.cozum-locked-cta {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: #92400e;
}

.cozum-locked-text strong {
    font-weight: 700;
}

.cozum-locked-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
}

.cozum-locked-link:hover {
    background: #000000;
}

/* =========================
   INLINE STYLE'LARIN CSS'E TAŞINMASI
   ========================= */

/* Cat warning margin */
.cat-warning {
    margin-bottom: 10px;
}

/* Çıkmış soru etiketi */
.cikmis-soru-etiket {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
}

/* Alt konu etiketi */
.alt-konu-etiket {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    font-size: 11px;
}

/* Disabled buton stilleri */
.cozum-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Üye ol butonu (register CTA) */
.cozum-btn.register-cta {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border: none;
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    min-width: 200px;
}

.antreman-page {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.antreman-mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

/* Mobilde mod kartları tek sütun */
@media (max-width: 768px) {
    .antreman-mode-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .antreman-mode-card {
        padding: 14px;
    }

    .antreman-mode-category {
        margin-bottom: 10px;
        padding-top: 10px;
    }

    .antreman-mode-category-select {
        font-size: 12px;
        padding: 8px 10px;
    }

    .antreman-mode-actions {
        flex-direction: column;
        gap: 8px;
    }

    .antreman-mode-start-btn {
        width: 100%;
        padding: 10px 20px;
    }

    .antreman-settings-form {
        transition: all 0.3s ease;
    }

    .antreman-settings-heading {
        transition: all 0.3s ease;
    }
}

.antreman-mode-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.antreman-mode-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.antreman-mode-card.active {
    background: #eff6ff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.antreman-mode-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.antreman-mode-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.antreman-mode-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.antreman-mode-category {
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.antreman-mode-category-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.antreman-mode-category-select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.15s ease;
    cursor: pointer;
}

.antreman-mode-category-select:focus {
    outline: none;
    border-color: #2563eb;
}

.antreman-mode-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.antreman-mode-start-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.antreman-mode-start-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.antreman-mode-start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.antreman-mode-question-count {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.antreman-mode-count-number {
    font-weight: 700;
    color: #2563eb;
    font-size: 14px;
}

.antreman-settings {
    margin-bottom: 30px;
}

.antreman-setting-group {
    margin-bottom: 16px;
}

.antreman-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.antreman-input,
.antreman-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.15s ease;
}

.antreman-input:focus,
.antreman-select:focus {
    outline: none;
    border-color: #2563eb;
}

.antreman-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.antreman-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.antreman-timer {
    background: #fef3c7;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #92400e;
    border: 1px solid #fcd34d;
    transition: all 0.3s ease;
    font-variant-numeric: tabular-nums;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.antreman-question-card {
    display: none;
}

.antreman-card-modern {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.antreman-card-modern:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.antreman-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.antreman-card-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.antreman-card-number {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.antreman-card-number-text {
    color: #ffffff;
}

.antreman-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.antreman-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.antreman-card-category {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.antreman-card-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.antreman-card-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 14px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.antreman-card-timer i {
    font-size: 14px;
}

.antreman-card-timer-text {
    font-size: 15px;
    color: #ffffff;
}

.antreman-card-timer.warning {
    background: rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.5);
}

.antreman-card-timer.critical {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    animation: pulse 1s infinite;
}

.antreman-card-flags {
    display: flex;
    gap: 8px;
}

.antreman-card-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.antreman-card-flag-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.antreman-card-flag-btn i {
    font-size: 18px;
    display: block;
}

.antreman-card-flag-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.antreman-card-flag-btn:active {
    transform: translateY(0) scale(0.98);
}

.antreman-card-flag-btn[data-flag-type="repeat"] {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.5);
}

.antreman-card-flag-btn[data-flag-type="repeat"]:hover {
    background: rgba(251, 191, 36, 0.4);
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.antreman-card-flag-btn[data-flag-type="mastered"] {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

.antreman-card-flag-btn[data-flag-type="mastered"]:hover {
    background: rgba(34, 197, 94, 0.4);
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.antreman-card-flag-btn.active {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.antreman-card-body {
    padding: 24px;
}

.antreman-card-question {
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.antreman-card-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.antreman-card-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.antreman-card-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #667eea;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.antreman-card-option:hover {
    border-color: #667eea;
    background: #f0f9ff;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.antreman-card-option:hover::before {
    transform: scaleY(1);
}

.antreman-card-option.answered {
    cursor: default;
    pointer-events: none;
}

.antreman-card-option-badge {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.antreman-card-option-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    padding-top: 2px;
}

.antreman-card-option-feedback {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.antreman-card-option-feedback i {
    display: none;
}

.antreman-card-option.secenek-dogru {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.antreman-card-option.secenek-dogru::before {
    background: #10b981;
    transform: scaleY(1);
}

.antreman-card-option.secenek-dogru .antreman-card-option-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.antreman-card-option.secenek-dogru .antreman-card-option-feedback {
    display: flex;
    background: #10b981;
    color: #ffffff;
}

.antreman-card-option.secenek-dogru .antreman-card-option-feedback .antreman-card-feedback-correct {
    display: block;
    animation: popIn 0.3s ease;
}

.antreman-card-option.secenek-yanlis {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.antreman-card-option.secenek-yanlis::before {
    background: #ef4444;
    transform: scaleY(1);
}

.antreman-card-option.secenek-yanlis .antreman-card-option-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.antreman-card-option.secenek-yanlis .antreman-card-option-feedback {
    display: flex;
    background: #ef4444;
    color: #ffffff;
}

.antreman-card-option.secenek-yanlis .antreman-card-option-feedback .antreman-card-feedback-wrong {
    display: block;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: translateY(-50%) scale(0);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

.antreman-card-explanation {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 2px solid #fbbf24;
    animation: slideDown 0.3s ease;
}

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

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

.antreman-card-explanation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
    color: #92400e;
}

.antreman-card-explanation-header i {
    font-size: 18px;
}

.antreman-card-explanation-content {
    font-size: 15px;
    line-height: 1.7;
    color: #78350f;
}

.antreman-card-wrong-reason {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    animation: slideDown 0.3s ease;
}

.antreman-card-wrong-reason-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #374151;
    font-size: 15px;
}

.antreman-card-wrong-reason-title i {
    color: #f59e0b;
}

.antreman-card-wrong-reason-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.antreman-card-wrong-reason-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.antreman-card-wrong-reason-btn:hover {
    border-color: #667eea;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.antreman-card-wrong-reason-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.antreman-card-wrong-reason-btn i {
    font-size: 14px;
}

.antreman-card-footer {
    padding: 16px 24px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.antreman-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.antreman-card-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #374151;
    text-align: left;
    min-width: 260px;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.antreman-card-action-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 14px 0 0 14px;
}

.antreman-card-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-width: 2px;
}

.antreman-card-action-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.antreman-card-action-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f3f4f6;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.antreman-card-action-icon i {
    font-size: 24px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.antreman-card-action-empty {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7 0%, #fef3c7 100%);
}

.antreman-card-action-empty::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.antreman-card-action-empty:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-color: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.antreman-card-action-icon-empty {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.antreman-card-action-icon-empty i {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
}

.antreman-card-action-empty:hover .antreman-card-action-icon-empty {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.antreman-card-action-suspicious {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f3e8ff 0%, #f3e8ff 100%);
}

.antreman-card-action-suspicious::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.antreman-card-action-suspicious:hover {
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
    border-color: #7c3aed;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.antreman-card-action-icon-suspicious {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.antreman-card-action-icon-suspicious i {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
}

.antreman-card-action-suspicious:hover .antreman-card-action-icon-suspicious {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.antreman-card-action-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.antreman-card-action-title {
    font-weight: 700;
    font-size: 17px;
    color: #111827;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.antreman-card-action-title strong {
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.antreman-card-action-empty .antreman-card-action-title {
    color: #92400e;
}

.antreman-card-action-empty .antreman-card-action-title strong {
    color: #b45309;
}

.antreman-card-action-suspicious .antreman-card-action-title {
    color: #6b21a8;
}

.antreman-card-action-suspicious .antreman-card-action-title strong {
    color: #7c3aed;
}

.antreman-card-action-desc {
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 2px;
    font-weight: 500;
}

.antreman-card-action-empty .antreman-card-action-desc {
    color: #78350f;
    font-weight: 500;
}

.antreman-card-action-suspicious .antreman-card-action-desc {
    color: #6b21a8;
    font-weight: 500;
}

.antreman-card-action-empty {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.antreman-card-action-empty::before {
    background: #f59e0b;
}

.antreman-card-action-empty:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.25);
    transform: translateY(-3px);
}

.antreman-card-action-empty:hover .antreman-card-action-icon-empty {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.antreman-card-action-empty:hover .antreman-card-action-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.antreman-card-action-suspicious {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.antreman-card-action-suspicious::before {
    background: #7c3aed;
}

.antreman-card-action-suspicious:hover {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.25);
    transform: translateY(-3px);
}

.antreman-card-action-suspicious:hover .antreman-card-action-icon-suspicious {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

.antreman-card-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.antreman-card-action-btn.active {
    border-width: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.antreman-card-action-empty.active {
    border-color: #d97706;
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

.antreman-card-action-empty.active .antreman-card-action-icon-empty {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

.antreman-card-action-suspicious.active {
    border-color: #6d28d9;
    background: linear-gradient(135deg, #e9d5ff 0%, #ddd6fe 100%);
}

.antreman-card-action-suspicious.active .antreman-card-action-icon-suspicious {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.5);
}

.antreman-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.antreman-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.antreman-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.antreman-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.antreman-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .antreman-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .antreman-card-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .antreman-card-body {
        padding: 16px;
    }

    .antreman-card-question {
        font-size: 15px;
        padding: 12px;
    }

    .antreman-card-option {
        padding: 14px 16px;
    }

    .antreman-card-wrong-reason-buttons {
        grid-template-columns: 1fr;
    }

    .antreman-btn-primary {
        width: 100%;
        padding: 16px 24px;
    }
}



.antreman-flag-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: opacity 0.2s ease;
}

.antreman-flag-btn:hover {
    opacity: 0.7;
}

.antreman-explanation {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.antreman-explanation-title {
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.antreman-explanation-text {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.antreman-navigation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.antreman-question-actions-bottom {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.antreman-btn-finish {
    background: #16a34a;
    color: #fff;
    border: none;
}

.antreman-btn-finish:hover {
    background: #15803d;
}

.antreman-wrong-reason-selector {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.antreman-wrong-reason-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
}

.antreman-wrong-reason-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.antreman-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.antreman-modal-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.antreman-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.antreman-modal-questions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.antreman-modal-section {
    margin-bottom: 16px;
}

.antreman-modal-label {
    font-weight: 600;
    margin-bottom: 12px;
}

.antreman-modal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.antreman-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.antreman-navigation-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Antreman Sayfalandırma */
.antreman-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    margin: 0 12px;
}

.antreman-pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.antreman-pagination-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.antreman-pagination-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.antreman-pagination-btn.active:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.antreman-pagination-dots {
    padding: 0 4px;
    color: #9ca3af;
    font-weight: 600;
    user-select: none;
}

.antreman-timer-inline {
    display: none;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 600;
    color: #374151;
}

.antreman-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.antreman-stat-card {
    text-align: center;
    padding: 16px;
}

.antreman-stat-card.antreman-stat-correct {
    background: #ecfdf5;
    border-color: #86efac;
}

.antreman-stat-card.antreman-stat-wrong {
    background: #fef2f2;
    border-color: #fca5a5;
}

.antreman-stat-card.antreman-stat-empty {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.antreman-stat-card.antreman-stat-suspicious {
    background: #fef3c7;
    border-color: #fcd34d;
}

.antreman-stat-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.antreman-stat-card.antreman-stat-correct .antreman-stat-label {
    color: #166534;
}

.antreman-stat-card.antreman-stat-wrong .antreman-stat-label {
    color: #b91c1c;
}

.antreman-stat-card.antreman-stat-empty .antreman-stat-label {
    color: #0284c7;
}

.antreman-stat-card.antreman-stat-suspicious .antreman-stat-label {
    color: #92400e;
}

.antreman-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.antreman-stat-card.antreman-stat-correct .antreman-stat-value {
    color: #166534;
}

.antreman-stat-card.antreman-stat-wrong .antreman-stat-value {
    color: #b91c1c;
}

.antreman-stat-card.antreman-stat-empty .antreman-stat-value {
    color: #0284c7;
}

.antreman-stat-card.antreman-stat-suspicious .antreman-stat-value {
    color: #92400e;
}

.antreman-source-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.antreman-source-details strong {
    color: #111827;
    font-weight: 600;
}

.antreman-category-table-wrapper {
    padding: 0;
    overflow: hidden;
}

.antreman-category-table {
    width: 100%;
    border-collapse: collapse;
}

.antreman-category-table thead {
    background: #f8fafc;
}

.antreman-category-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.antreman-category-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
}

.antreman-category-table tbody tr:hover {
    background: #f8fafc;
}

.antreman-repeat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.antreman-repeat-item {
    font-size: 14px;
}

.antreman-repeat-item a {
    color: #2563eb;
    text-decoration: none;
}

.antreman-repeat-item a:hover {
    text-decoration: underline;
}

.antreman-report-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .antreman-mode-cards {
        grid-template-columns: 1fr;
    }

    .antreman-navigation {
        flex-direction: column;
        gap: 16px;
    }

    .antreman-navigation .btn {
        width: 100%;
    }

    .antreman-pagination {
        order: 2;
        margin: 8px 0;
        width: 100%;
        justify-content: center;
    }

    .antreman-pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .antreman-card-flags {
        flex-wrap: wrap;
    }

    .antreman-card-flag-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.antreman-alert-modal,
.antreman-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.antreman-alert-content,
.antreman-confirm-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: scaleIn 0.3s ease;
}

.antreman-alert-header,
.antreman-confirm-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.antreman-alert-title,
.antreman-confirm-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 12px;
}

.antreman-alert-title::before {
    content: '⚠️';
    font-size: 24px;
}

.antreman-confirm-title::before {
    content: '❓';
    font-size: 24px;
}

.antreman-alert-body,
.antreman-confirm-body {
    padding: 20px 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.antreman-alert-body p,
.antreman-confirm-body p {
    margin: 0;
}

.antreman-alert-footer,
.antreman-confirm-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.antreman-alert-ok,
.antreman-confirm-ok,
.antreman-confirm-cancel {
    min-width: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.antreman-alert-ok,
.antreman-confirm-ok {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.antreman-alert-ok:hover,
.antreman-confirm-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.antreman-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.antreman-confirm-cancel:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .antreman-alert-content,
    .antreman-confirm-content {
        width: 95%;
        margin: 20px;
    }

    .antreman-alert-header,
    .antreman-confirm-header {
        padding: 20px 20px 12px;
    }

    .antreman-alert-body,
    .antreman-confirm-body {
        padding: 16px 20px;
    }

    .antreman-alert-footer,
    .antreman-confirm-footer {
        padding: 12px 20px 20px;
        flex-direction: column-reverse;
    }

    .antreman-alert-ok,
    .antreman-confirm-ok,
    .antreman-confirm-cancel {
        width: 100%;
    }
}

/* True/False Antreman Modu Stilleri */
.antreman-true-false-buttons {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.antreman-tf-btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 24px 32px;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.antreman-tf-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.antreman-tf-btn:active:not(:disabled) {
    transform: translateY(0);
}

.antreman-tf-btn.answered {
    cursor: not-allowed;
    opacity: 0.7;
}

.antreman-tf-btn.tf-correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.antreman-tf-btn.tf-wrong {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.antreman-tf-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.antreman-tf-btn-icon {
    font-size: 48px;
    line-height: 1;
}

.antreman-tf-btn-text {
    font-size: 20px;
    font-weight: 700;
}

.antreman-tf-explanation-wrapper {
    margin-top: 24px;
    text-align: center;
}

.antreman-tf-explanation-btn {
    padding: 12px 24px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.antreman-tf-explanation-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.antreman-tf-explanation-btn i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .antreman-true-false-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .antreman-tf-btn {
        min-width: 100%;
        max-width: 100%;
        padding: 20px 24px;
    }

    .antreman-tf-btn-icon {
        font-size: 40px;
    }

    .antreman-tf-btn-text {
        font-size: 18px;
    }
}

/* === Utility Classes for Inline CSS Replacement === */
.gd-card-narrow {
    max-width: 700px;
    margin: 0 auto;
}

.gd-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.gd-mt-20 {
    margin-top: 20px;
}

.gd-ml-8 {
    margin-left: 8px;
}

.admin-card-mt {
    margin-top: 20px;
}

.admin-list {
    margin: 10px 0;
    padding-left: 20px;
}

.container-mb {
    margin-bottom: 20px;
}

.report-header-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.report-header-desc {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.report-status-msg {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.report-status-success {
    background: #eafaf1;
    border: 1px solid #27ae60;
    color: #196f3d;
}

.report-status-error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #c0392b;
}

.report-table-wrapper {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.report-table thead tr {
    background: #ecf0f1;
}

.report-table th,
.report-table td {
    padding: 6px;
    border: 1px solid #dfe6e9;
}

.report-table-cell-small {
    font-size: 12px;
    color: #555;
}

.report-table td {
    text-align: center;
}

.report-table td:first-child,
.report-table td:nth-child(2),
.report-table td:nth-child(3),
.report-table td:nth-child(4) {
    text-align: left;
}

.wallpapers-text {
    margin-top: 2px;
}

.report-form-inline {
    margin-bottom: 10px;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 6px;
    background: #fafafa;
}

.report-form-label {
    font-size: 12px;
    color: #555;
    display: block;
    text-align: left;
    margin-bottom: 4px;
}

/* ===============================
   ADMIN HIZLI LİNKLER PANELİ
=============================== */
/* Admin Quick Links - Header Altı Menü */
.admin-quick-links-bar {
    background: #fff;
    padding: 12px 0;
    border-radius: 0;
    border: 1px solid #dcdde1;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    position: relative;
    z-index: 100;
}

.admin-quick-links-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.admin-quick-links-toggle {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: left;
    border-radius: 6px;
}

.admin-quick-links-toggle:hover {
    background: #f3f4f6;
}

.admin-quick-links-toggle.active .admin-quick-links-arrow {
    transform: rotate(180deg);
}

.admin-quick-links-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.admin-quick-links-toggle-text {
    flex: 1;
}

.admin-quick-links-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.admin-quick-links-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.admin-quick-links-menu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.admin-quick-links-menu.active {
    max-height: 600px;
    opacity: 1;
}

.admin-quick-links-menu-content {
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8f9fa;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-quick-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-quick-link strong {
    font-weight: 600;
}

.admin-quick-link-alert {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.admin-quick-link-alert:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
}

.admin-quick-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 768px) {
    .admin-quick-links-inner {
        padding: 0 12px;
    }

    .admin-quick-links-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }

    .admin-quick-links-icon {
        font-size: 16px;
    }

    .admin-quick-links-menu-content {
        padding: 10px;
        gap: 6px;
    }

    .admin-quick-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ============================
   BREADCRUMBS
============================ */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb-nav a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumb-nav span.separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.breadcrumb-nav span.current {
    color: #1e293b;
    font-weight: 600;
}