/* --- GENEL LİSTE TASARIMI --- */
.material-list-item {
    background-color: var(--bg-dark-grey);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #333;
    margin-bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.material-list-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    background-color: #222;
    box-shadow: 0 10px 20px rgba(0, 100, 0, 0.1);
}
.list-icon { font-size: 1.8rem; color: var(--primary-green); margin-right: 20px; }
.list-title { font-size: 1.1rem; font-weight: 700; color: white; }
.list-meta { font-size: 0.8rem; color: #888; margin-top: 5px; }

/* --- FİLTRE BUTONLARI (Tümü, Notlar, Quizler) --- */
.tab-menu { display: flex; gap: 10px; margin-bottom: 25px; }
.tab-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px 20px;
    border-radius: 25px; /* Oval Hap Şekli */
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}
.tab-btn:hover { border-color: white; color: white; }
.tab-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(0, 100, 0, 0.4);
}

/* --- DETAY SAYFASI --- */
#detail-view { display: none; padding-top: 10px; }
.detail-header {
    display: flex; align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}
.btn-back {
    background: #222; border: 1px solid #333; color: #ccc;
    padding: 10px 20px; border-radius: 20px; font-size: 0.9rem;
    cursor: pointer; margin-right: 20px; transition: 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.btn-back:hover { border-color: var(--primary-green); color: white; }

/* --- QUIZ KUTULARI (PREMIUM STYLE) --- */
.quiz-question-container {
    background: #111;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.quiz-image { max-width: 100%; height: auto; border-radius: 8px; margin: 15px 0; border: 1px solid #444; }

/* Quiz Şıkları */
.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Yan yana 2 şık */
    gap: 15px;
    margin-top: 20px;
}
@media (max-width: 600px) { .quiz-options { grid-template-columns: 1fr; } } /* Mobilde alt alta */

.quiz-opt-btn {
    background: #1a1a1a;
    border: 2px solid #333;
    color: #ccc;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.quiz-opt-btn b { margin-right: 10px; color: var(--primary-green); }

.quiz-opt-btn:hover {
    background: #252525;
    border-color: #666;
    transform: translateY(-2px);
}

/* DOĞRU / YANLIŞ RENKLERİ */
.quiz-opt-btn.correct {
    background-color: rgba(0, 100, 0, 0.2) !important;
    border-color: #00ff00 !important;
    color: #00ff00 !important;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}
.quiz-opt-btn.wrong {
    background-color: rgba(139, 0, 0, 0.2) !important;
    border-color: #ff4444 !important;
    color: #ff4444 !important;
}

/* --- CANVAS TOOLBAR --- */
.canvas-wrapper {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 2px solid #333;
}
.canvas-toolbar {
    background: #181818; padding: 15px; display: flex; justify-content: center; gap: 15px;
    align-items: center; border-bottom: 1px solid #333; flex-wrap: wrap;
}
.tool-group { background: #252525; padding: 5px; border-radius: 30px; display: flex; gap: 5px; border: 1px solid #333; }
.tool-btn {
    width: 45px; height: 45px; border: none; background: transparent; border-radius: 50%;
    color: #888; font-size: 1.2rem; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.tool-btn:hover { color: white; background: rgba(255,255,255,0.1); }
.tool-btn.active { background: var(--primary-green); color: white; box-shadow: 0 0 15px var(--primary-green); transform: scale(1.1); }
.color-picker { width: 40px; height: 40px; border: 2px solid #555; border-radius: 50%; cursor: pointer; padding: 0; background: none; }

/* --- MODAL (POPUP) DÜZELTMESİ --- */
.modal {
    display: none; /* JS ile block yapılacak */
    position: fixed;
    z-index: 2000; /* En üstte */
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); /* Koyu arka plan */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #151515;
    /* ORTALAMA İŞLEMİ */
    position: relative;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    
    width: 90%; max-width: 600px;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #444;
    box-shadow: 0 0 50px rgba(0, 100, 0, 0.2);
    
    max-height: 85vh; /* Ekrandan taşmasın */
    overflow-y: auto; /* İçerik uzunsa kaydır */
    -webkit-overflow-scrolling: touch;
}

/* Soru Ekleme Formu */
.question-block { background: #111; border: 1px solid #333; border-radius: 10px; margin-bottom: 15px; overflow: hidden; }
.q-header { padding: 15px; display: flex; justify-content: space-between; align-items: center; background: #1f1f1f; border-bottom: 1px solid #333; cursor: default;}
.question-block.collapsed .q-header { border-bottom: none; cursor: pointer; background: #111;}
.q-title { font-weight: bold; color: var(--primary-green); }
.q-body { padding: 20px; }
.question-block.collapsed .q-body { display: none; }
.add-q-btn {
    width: 100%; padding: 15px; background: transparent; border: 2px dashed #444; color: #888;
    border-radius: 10px; cursor: pointer; font-weight: bold; margin-top: 10px; margin-bottom: 30px; transition: 0.3s;
}
.add-q-btn:hover { border-color: var(--primary-green); color: var(--primary-green); }
