.app-container { 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}
.main-content.full-height { 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
    overflow: hidden; 
    width: 100vw;
}

.semester-selector select { min-width: 250px; padding: 8px; }

.schedule-workspace { 
    display: flex; 
    flex: 1; 
    overflow: hidden; 
    position: relative; 
}
.schedule-container { 
    flex: 1; 
    overflow: auto; 
    padding: 0 1.5rem 1.5rem 0; 
    border-radius: 10px;
}

.semester-selector{
    padding-top: 25px;
}

.week-grid {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    background-color: #cbd5e1; 
    gap: 1px; 
    border: 1px solid #cbd5e1;
    min-width: 1000px;
}

.grid-header-cell, .grid-time-cell, .grid-cell { 
    background: white; 
    padding: 8px; 
    min-height: 80px; 
    position: relative; 
}
.grid-header-cell { font-weight: 600; text-align: center; background: var(--gray-light); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #cbd5e1; }
.grid-time-cell { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; background: #f8fafc; position: sticky; left: 0; z-index: 6; border-right: 1px solid #cbd5e1; }

.unscheduled-bin {
    width: 320px; 
    background: white; 
    border-left: 1px solid var(--gray-border);
    display: flex; 
    flex-direction: column; 
    z-index: 20;
}
.bin-header { padding: 1rem; border-bottom: 1px solid #f1f5f9; background: #f8fafc; display: flex; justify-content: space-between; }
.bin-list { flex: 1; overflow-y: auto; padding: 1rem; }

.lesson-card {
    background: white; border: 1px solid var(--gray-border); border-left: 4px solid #94a3b8;
    border-radius: 4px; padding: 8px; margin-bottom: 8px; cursor: grab; font-size: 0.85rem;
}
.lesson-card:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.lesson-card.type-lecture { border-left-color: #3b82f6; background: #eff6ff; }
.lesson-card.type-practice { border-left-color: #22c55e; background: #f0fdf4; }
.lesson-card.type-lab { border-left-color: #eab308; background: #fefce8; }

.grid-cell.drag-over { background-color: #e0f2fe !important; border: 2px dashed #3b82f6; }
.lesson-card.dragging { opacity: 0.5; }

.overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9); z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.generation-log { 
    background: #1e293b; 
    color: #10b981; 
    font-family: monospace; 
    padding: 0.5rem; 
    height: 100px; 
    overflow-y: auto; 
    margin-top: 1rem; 
}

.overlay-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.overlay-loader.hidden {
    display: none !important;
}

.loader-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    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);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.loader-content h3 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.5rem;
    color: #1e293b;
}

.loader-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.spinner {
    font-size: 3rem;
    display: inline-block;
    animation: spin 1.5s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.generation-log {
    background: #0f172a;
    color: #10b981;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    margin-top: 1rem;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.generation-log::-webkit-scrollbar {
    width: 6px;
}
.generation-log::-webkit-scrollbar-track {
    background: #1e293b;
}
.generation-log::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

.week-controls{
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 15px 0 15px 0;
    justify-content: center;
    font-weight: 600;
}