/* ==========================================================================
   🗂️ GURUJI ADMIN - SYSTEM DATABASE EXPLORER CSS (v1.0)
   ========================================================================== */

/* 🗂️ SUBJECT FOLDERS GRID */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; text-align: center; }
.folder-card {
    background: var(--glass-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 20px; text-align: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative; overflow: hidden;
    box-shadow: var(--glass-shadow);
}
.folder-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--glass-shadow); background: rgba(99,102,241,0.05); }
.folder-icon { font-size: 3rem; color: #facc15; margin-bottom: 15px; transition: 0.3s; }
.folder-card:hover .folder-icon { transform: scale(1.1); }
.folder-title { font-family: 'Inter'; font-weight: 700; color: var(--text-main); font-size: 1rem; margin-bottom: 5px; }
.folder-meta { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.folder-type { position: absolute; top: 10px; right: 10px; font-size: 0.65rem; padding: 4px 8px; border-radius: 20px; font-weight: 800; }
.type-quiz { background: rgba(56, 189, 248, 0.1); color: #38bdf8; }
.type-board { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

/* 📄 QUESTIONS TABLE VIEW */
#questions-view { display: none; animation: fadeUp 0.4s ease; text-align: left; }
.table-toolbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
    background: rgba(0,0,0,0.2); padding: 15px 20px; border-radius: 16px; border: 1px solid var(--glass-border); margin-bottom: 20px;
}
.toolbar-left { display: flex; align-items: center; gap: 15px; }
.btn-back { background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: white; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: 0.3s; font-family: 'Inter'; font-weight: 700; }
.btn-back:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

.bulk-action-zone { display: flex; align-items: center; gap: 15px; }
.custom-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: var(--primary); }

.btn-delete-bulk {
    background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 10px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.3s; display: none;
    font-family: 'Inter', sans-serif;
}
.btn-delete-bulk:hover { background: #ef4444; color: white; }

.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; background: rgba(30, 41, 59, 0.6); border: 1px solid var(--glass-border); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--glass-border); font-family: 'Inter'; font-size: 0.9rem; color: var(--text-main); }
th { background: rgba(0,0,0,0.3); color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; }

.q-text { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.btn-icon-danger { background: rgba(239, 68, 68, 0.1); border: none; color: #ef4444; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.btn-icon-danger:hover { background: #ef4444; color: white; }

@media (max-width: 768px) {
    .table-toolbar { flex-direction: column; align-items: flex-start; }
    .bulk-action-zone { width: 100%; justify-content: space-between; margin-top: 10px; }
}
