/* Activities module styles */

/* Facilitator console */
.console-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    height: calc(100vh - 80px);
    padding: 1rem;
    box-sizing: border-box;
}

.console-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.console-sidebar {
    overflow-y: auto;
    border-left: 1px solid #e5e7eb;
    padding-left: 1rem;
}

/* Phase progress bar */
.phase-bar {
    display: flex;
    gap: 4px;
    margin: 0.5rem 0;
}

.phase-bar-item {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
}

.phase-bar-item.active  { background: #4F46E5; }
.phase-bar-item.done    { background: #10B981; }
.phase-bar-item.pending { background: #e5e7eb; }

/* Timer display */
.timer-display {
    font-size: 2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1f2937;
}

.timer-display.warning { color: #f59e0b; }
.timer-display.danger  { color: #ef4444; }

/* Student roster */
.roster-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.roster-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.roster-item .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.submitted  { background: #10B981; }
.status-dot.in-progress { background: #f59e0b; }
.status-dot.not-started { background: #d1d5db; }
.status-dot.late       { background: #6b7280; }

/* Projector view */
.projector-body {
    background: #0f172a;
    color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Inter', sans-serif;
}

.projector-phase-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.projector-activity-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.projector-timer {
    font-size: 5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #4F46E5;
}

.projector-join-code {
    margin-top: 2rem;
    font-size: 1.25rem;
    color: #94a3b8;
}

.projector-join-code strong {
    font-size: 2rem;
    color: #f8fafc;
    letter-spacing: 0.15em;
}

/* Student app */
.student-app {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.5rem;
}

.student-phase-header {
    background: #4F46E5;
    color: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.student-phase-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.student-phase-header .phase-meta {
    font-size: 0.875rem;
    opacity: 0.8;
}

.student-submission-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.student-submission-area textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
    resize: vertical;
    box-sizing: border-box;
}

.student-submission-area textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Spotlight overlay */
.spotlight-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.spotlight-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Group card */
.group-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.group-card .group-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #4F46E5;
    margin-bottom: 0.5rem;
}

/* Join word screen */
.join-word-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.join-word-input {
    font-size: 2rem;
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    width: 280px;
    padding: 0.75rem;
    border: 2px solid #4F46E5;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Review / grading */
.rubric-dimension {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.rubric-dimension .dim-label {
    flex: 1;
    font-size: 0.9rem;
}

.rubric-dimension .dim-score {
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.grade-released { color: #10B981; }
.grade-pending  { color: #f59e0b; }
.grade-override { color: #ef4444; }

/* Catalog grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Class plan drag handles */
.plan-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: grab;
}

.plan-item:active { cursor: grabbing; }

.plan-item .drag-handle {
    color: #9ca3af;
    cursor: grab;
    font-size: 1.1rem;
}

.plan-item.dragging {
    opacity: 0.5;
    border: 2px dashed #4F46E5;
}

/* Responsive */
@media (max-width: 768px) {
    .console-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .console-sidebar {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 1rem;
    }
}
