/* admin_style.css - Premium Dashboard Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0a0a1a;
    --panel-bg: rgba(255, 255, 255, 0.03);
    --accent: #d4af37; /* Altın Sarısı */
    --accent-hover: #f1c40f;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --glass-border: rgba(212, 175, 55, 0.2);
    --success: #2ecc71;
    --danger: #e74c3c;
}

body {
    background: radial-gradient(circle at top right, #1e1e3f, var(--bg-dark));
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* --- ORTAK KONTEYNER --- */
.admin-layout {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

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

/* --- PREMIUM KART (LOGIN & FORM) --- */
.login-card {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* --- TABLO TASARIMI (DASHBOARD) --- */
.q-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Satırlar arası boşluk */
}

.q-table th {
    padding: 15px 20px;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.q-row {
    background: var(--panel-bg);
    transition: all 0.3s ease;
}

.q-row:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.q-row td {
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.q-row td:first-child { border-left: 1px solid rgba(255,255,255,0.05); border-radius: 16px 0 0 16px; }
.q-row td:last-child { border-right: 1px solid rgba(255,255,255,0.05); border-radius: 0 16px 16px 0; }

/* --- FORM ELEMANLARI --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* --- MODERN DOĞRU CEVAP SEÇİCİ (RADIO CARDS) --- */
.answer-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.answer-selector label {
    flex: 1;
    cursor: pointer;
    margin-bottom: 0; /* Standart label marginini sıfırla */
}

.answer-selector input[type="radio"] {
    display: none; /* Standart yuvarlağı gizle */
}

.answer-card {
    display: block;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

/* Seçili Kart Stili */
.answer-selector input[type="radio"]:checked + .answer-card {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.answer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
}

/* --- BUTONLAR --- */
.btn-p {
    background: linear-gradient(135deg, var(--accent) 0%, #aa891a 100%);
    color: #000;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-p:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-danger {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(231, 76, 60, 0.1);
    transition: 0.3s;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

/* --- ROZETLER --- */
.stat-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- MOBİL UYUM --- */
@media (max-width: 768px) {
    .answer-selector {
        flex-wrap: wrap;
    }
    .answer-selector label {
        flex: 1 1 45%; /* Yan yana ikişerli dizilir */
    }
    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .q-table thead { display: none; } /* Mobilde başlıkları gizle */
}

/* --- PAGINATION STYLE --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding-bottom: 50px;
}

.page-link {
    padding: 10px 18px;
    background: var(--panel-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.page-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
}

.page-link.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.page-dots {
    color: var(--text-muted);
    padding: 10px;
}

/* admin_style.css - MOBİL İÇİN KESİN ÇÖZÜM */
@media screen and (max-width: 768px) {
    /* Konteynırı daralt */
    .admin-layout {
        width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Tablo yapısını tamamen iptal et ve 'kart' sistemine geç */
    .q-table, 
    .q-table thead, 
    .q-table tbody, 
    .q-table th, 
    .q-table td, 
    .q-table tr {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Başlıkları mobilde tamamen yok et */
    .q-table thead {
        display: none !important;
    }

    /* Her bir satırı (soruyu) bir kutu yap */
    .q-row {
        margin-bottom: 25px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-radius: 15px !important;
        overflow: hidden !important;
    }

    /* Hücre ayarları */
    .q-table td {
        text-align: left !important;
        padding: 12px 15px !important;
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Soru metni kutusunu genişlet (üç noktayı kaldır) */
    .q-table td:nth-child(3) {
        display: block !important; /* Alt alta gelsin */
        background: rgba(0,0,0,0.2) !important;
    }

    .q-table td:nth-child(3) div {
        white-space: normal !important;
        text-overflow: clip !important;
        max-width: 100% !important;
        line-height: 1.5 !important;
        font-size: 0.95rem !important;
    }

    /* İşlem butonlarını (Düzenle/Sil) yan yana ve büyük yap */
    .q-table td:last-child {
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
        padding: 20px !important;
        background: rgba(212, 175, 55, 0.05) !important;
    }

    .q-table td:last-child .btn-p, 
    .q-table td:last-child .btn-danger {
        flex: 1 !important; /* Butonlar eşit genişlikte olsun */
        text-align: center !important;
        justify-content: center !important;
    }

    /* Etiket ekleyelim (Sıra, Seviye vb.) */
    .q-table td:nth-child(1):before { content: "Sıra No:"; color: #d4af37; font-weight: bold; }
    .q-table td:nth-child(2):before { content: "Zorluk:"; color: #d4af37; font-weight: bold; }
}