/* BILIM HOME — shared styles (from bilim_home.html + bilim_homePage / bilim_home (1).html) */
/* Design tokens and appearance preserved exactly. */

/* Theory rich editor (teacher assignment modal) */
#asg-theory-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
#asg-theory-editor:focus:before {
    content: none;
}
#asg-theory-editor ul,
#asg-theory-editor ol {
    padding-left: 1.25rem;
    margin: 0.35rem 0;
}
#asg-theory-editor b,
#asg-theory-editor strong { font-weight: 700; }
#asg-theory-editor i,
#asg-theory-editor em { font-style: italic; }
#asg-theory-editor u { text-decoration: underline; }

#test-desc-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
#test-desc-editor:focus:before {
    content: none;
}
#test-desc-editor ul,
#test-desc-editor ol {
    padding-left: 1.25rem;
    margin: 0.35rem 0;
}
#test-desc-editor b,
#test-desc-editor strong { font-weight: 700; }
#test-desc-editor i,
#test-desc-editor em { font-style: italic; }
#test-desc-editor u { text-decoration: underline; }

/* --- From student dashboard (bilim_home.html) --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.glow-effect {
    box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.3);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pulse-subtle {
    animation: pulse-slow 3s infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.02); }
}

/* --- From landing / SPA (bilim_homePage) --- */
body.landing-body,
body.spa-body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC;
    overflow-x: hidden;
}

.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.transition-all {
    transition: all 0.3s ease;
}

.page-view {
    display: none;
}

.page-view.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Drag & Drop Styles */
.draggable {
    cursor: grab;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 5px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.draggable:active {
    cursor: grabbing;
}

.dropzone {
    min-height: 100px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    background: #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dropzone.dragover {
    border-color: #4F46E5;
    background: #e0e7ff;
}

/* Custom Scrollbar (SPA) */
.spa-body ::-webkit-scrollbar {
    width: 8px;
}

.spa-body ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.spa-body ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.spa-body ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar {
    transition: transform 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 50;
    }
    .sidebar.open {
        transform: translateX(0);
    }
}

/* Secondary page shell: full-height layout */
html.spa-html,
html.spa-html body.spa-body {
    height: 100%;
}

body.spa-body.h-screen-flex {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
