/* ========== ROOM PAGE STYLES (ENHANCED VERSION) ========== */

.room-page {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

.room-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
    z-index: -1;
}

.room-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ENHANCED HERO SECTION WITH LOGO BACKGROUND ========== */
.room-hero-section {
    position: relative;
    height: 320px;
    margin: 20px 0 40px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.room-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
    filter: brightness(0.7) saturate(1.2);
}

.room-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(15, 20, 25, 0.95) 0%,
        rgba(15, 20, 25, 0.85) 40%,
        rgba(15, 20, 25, 0.5) 80%,
        rgba(15, 20, 25, 0.2) 100%);
    z-index: 2;
}

.room-hero-content {
    position: relative;
    z-index: 3;
    padding: 0 50px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

.room-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.room-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.room-title-wrapper {
    flex: 1;
}

.room-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    background: linear-gradient(to right, 
        var(--secondary),
        var(--primary),
        #9333EA
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.room-description {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 900px;
    font-weight: 400;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.room-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.room-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.room-meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.room-meta-item i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* ========== ENHANCED CONTENT LAYOUT ========== */
.room-content-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 35px;
    margin-bottom: 80px;
}

/* ========== ENHANCED SIDEBAR ========== */
.room-sidebar {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.room-sidebar:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-light);
}

.sidebar-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar-header h3 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    margin-bottom: 15px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.task-nav-item:hover:not(.disabled) {
    background: rgba(0, 102, 255, 0.12);
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.15);
}

.task-nav-item.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 212, 255, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 102, 255, 0.25);
}

.task-nav-item.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--primary);
}

.task-nav-item.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.1));
    border-color: var(--success);
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.25);
}

.task-nav-item.completed .task-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.task-nav-item.completed::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.5);
}

.task-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--background);
}

.task-nav-item.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
    background: var(--background);
}

.task-number {
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.task-nav-item.active .task-number {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.task-nav-content {
    flex: 1;
}

.task-nav-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.4;
}

.task-nav-item.active .task-nav-title {
    color: var(--primary);
    font-weight: 800;
}

.task-nav-item.disabled .task-nav-title {
    color: var(--text-muted);
}

.task-nav-item.completed .task-nav-title {
    color: var(--success);
}

.task-nav-desc {
    display: none; /* Hidden as requested */
}

/* ========== ENHANCED TASK CONTENT AREA ========== */
.task-content-area {
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.task-content-area:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.task-header {
    background: linear-gradient(135deg, var(--surface-light), var(--surface));
    padding: 40px;
    border-bottom: 2px solid var(--border-light);
}

.task-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 20px;
    line-height: 1.2;
}

.task-title i {
    color: var(--primary);
    font-size: 1.8rem;
    background: rgba(0, 102, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.task-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 900px;
    font-weight: 400;
    padding-left: 5px;
}

.task-body {
    padding: 40px;
}

/* ========== ENHANCED TASK CONTENT STYLING ========== */
.task-content-section {
    margin-bottom: 40px;
}

.task-explanation {
    background: var(--surface-light);
    border-radius: 18px;
    padding: 35px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.task-explanation p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.task-explanation strong {
    color: var(--text-primary);
    font-weight: 700;
}

.task-explanation em {
    color: var(--secondary);
    font-style: italic;
    font-weight: 500;
}

.task-explanation ul, .task-explanation ol {
    margin: 25px 0 25px 35px;
    padding: 0;
}

.task-explanation li {
    margin-bottom: 15px;
    padding-left: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.task-explanation li::marker {
    color: var(--primary);
    font-weight: bold;
}

/* ========== ENHANCED HIGHLIGHTS ========== */
.task-highlights {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 212, 255, 0.05));
    border-left: 5px solid var(--primary);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.task-highlights-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.task-highlights-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.task-highlights-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.task-highlights ul, .task-highlights ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.task-highlights li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.task-highlights li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========== IMPORTANT NOTE STYLING ========== */
.task-important-note {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 5px solid var(--warning);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.task-important-note-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.task-important-note-header i {
    font-size: 1.5rem;
    color: var(--warning);
}

.task-important-note-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ========== ENHANCED QUESTIONS SECTION ========== */
.questions-section {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 102, 255, 0.05));
    border: 2px solid rgba(0, 102, 255, 0.15);
    border-radius: 20px;
    padding: 35px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.questions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.questions-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 102, 255, 0.2);
}

.questions-header i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.questions-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.question-item {
    background: var(--surface);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    border: 2px solid var(--border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-text {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 600;
}

.question-text strong {
    color: var(--primary);
}

.answer-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label::after {
    content: '*';
    color: var(--danger);
    font-size: 1.2rem;
}

.answer-input {
    width: 100%;
    padding: 18px 22px;
    background: var(--background);
    border: 3px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.15);
    background: var(--surface-light);
}

.answer-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.answer-format {
    background: rgba(0, 102, 255, 0.08);
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
}

.answer-format strong {
    color: var(--primary);
    font-weight: 700;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.submit-btn {
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.reset-btn {
    padding: 18px 30px;
    background: transparent;
    color: var(--text-secondary);
    border: 3px solid var(--border);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-btn:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ========== ENHANCED FEEDBACK MESSAGES ========== */
.feedback-message {
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 25px;
    display: none;
    align-items: center;
    gap: 18px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.1));
    border-color: rgba(40, 167, 69, 0.4);
    color: var(--success);
}

.feedback-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.1));
    border-color: rgba(220, 53, 69, 0.4);
    color: var(--danger);
}

.feedback-message i {
    font-size: 1.4rem;
}

/* ========== ENHANCED TASK NAVIGATION ========== */
.task-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    background: linear-gradient(135deg, var(--surface-light), var(--surface));
    border-top: 2px solid var(--border-light);
    margin-top: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.4);
}

.nav-btn:active {
    transform: translateY(-2px);
}

.nav-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 3px solid var(--primary);
}

.nav-btn-outline:hover {
    background: rgba(0, 102, 255, 0.15);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    background: rgba(0, 102, 255, 0.1);
    padding: 12px 25px;
    border-radius: 25px;
}

.task-progress strong {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ========== ENHANCED COMPLETION BADGE ========== */
.completion-badge {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(40, 167, 69, 0.1));
    border: 3px dashed var(--success);
    border-radius: 20px;
    margin-top: 50px;
    animation: pulse 3s infinite;
    position: relative;
    overflow: hidden;
}

.completion-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.completion-badge > * {
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% { 
        border-color: rgba(40, 167, 69, 0.5);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
    }
    50% { 
        border-color: rgba(40, 167, 69, 1);
        box-shadow: 0 0 40px rgba(40, 167, 69, 0.4);
    }
    100% { 
        border-color: rgba(40, 167, 69, 0.5);
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.2);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.completion-badge h3 {
    font-size: 2.2rem;
    color: var(--success);
    margin-bottom: 20px;
    font-weight: 900;
}

.completion-badge p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* ========== CODE BLOCKS ========== */
code {
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: var(--primary);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .room-content-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .room-title {
        font-size: 2.4rem;
    }
    
    .task-body, .task-header {
        padding: 35px;
    }
    
    .room-hero-content {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .room-hero-section {
        height: 300px;
        margin: 15px 0 35px;
    }
    
    .room-hero-content {
        padding: 0 35px;
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    
    .room-icon {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
    }
    
    .room-title {
        font-size: 2.2rem;
    }
    
    .room-description {
        font-size: 1.2rem;
    }
    
    .room-content-layout {
        grid-template-columns: 1fr;
    }
    
    .room-sidebar {
        position: static;
        margin-bottom: 35px;
        max-height: none;
    }
    
    .tasks-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .task-nav-item {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .room-hero-section {
        height: 280px;
        border-radius: 18px;
    }
    
    .room-hero-content {
        padding: 0 30px;
    }
    
    .room-title {
        font-size: 2rem;
    }
    
    .room-meta {
        gap: 15px;
    }
    
    .room-meta-item {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
    
    .task-header {
        padding: 30px;
    }
    
    .task-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .task-body {
        padding: 30px;
    }
    
    .questions-section {
        padding: 30px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn, .reset-btn {
        width: 100%;
    }
    
    .task-navigation {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .task-progress {
        order: -1;
        margin-bottom: 15px;
    }
    
    .completion-badge {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .room-hero-section {
        height: 260px;
        border-radius: 15px;
    }
    
    .room-hero-content {
        padding: 0 25px;
    }
    
    .room-icon {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
        border-radius: 15px;
    }
    
    .room-title {
        font-size: 1.8rem;
    }
    
    .room-description {
        font-size: 1.1rem;
    }
    
    .task-header, .task-body {
        padding: 25px;
    }
    
    .task-title {
        font-size: 1.6rem;
    }
    
    .question-item {
        padding: 25px;
    }
    
    .completion-badge {
        padding: 35px 25px;
    }
    
    .completion-badge h3 {
        font-size: 1.8rem;
    }
    
    .badge-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .room-hero-section {
        height: 240px;
    }
    
    .room-title {
        font-size: 1.6rem;
    }
    
    .room-description {
        font-size: 1rem;
    }
    
    .room-meta {
        justify-content: center;
    }
    
    .room-meta-item {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
    
    .task-explanation {
        padding: 25px;
    }
    
    .task-highlights, .task-important-note {
        padding: 25px;
    }
}

/* ========== ADDITIONAL STYLES FOR COMPACT DESIGN ========== */

/* Reduce overall text sizes */
.room-title {
    font-size: 2.2rem !important;
}

.room-description {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

.task-title {
    font-size: 1.6rem !important;
    gap: 12px !important;
}

.task-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.task-explanation p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.task-explanation li {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.question-text {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
}

.answer-input {
    font-size: 1rem !important;
    padding: 14px 18px !important;
}

/* Adjust layout spacing */
.room-container {
    padding: 0 10px !important;
}

.room-content-layout {
    gap: 20px !important;
}

.task-header {
    padding: 10px 10px !important;
}

.task-body {
    padding: 0px 25px !important;
}

.task-explanation {
    padding: 25px !important;
}

.task-highlights, .task-important-note {
    padding: 20px !important;
    margin: 20px 0 !important;
}

.questions-section {
    padding: 25px !important;
    margin-top: 30px !important;
}

.question-item {
    padding: 20px !important;
}

/* Adjust sidebar alignment */
.room-sidebar {
    border-radius: 15px 0 0 15px !important;
    border-right: none !important;
    margin-left: -10px !important;
    padding: 20px !important;
}

/* Adjust main content area alignment */
.task-content-area {
    border-radius: 0 15px 15px 0 !important;
    border-left: none !important;
    margin-right: -10px !important;
}

/* Remove task description */
.task-subtitle {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .room-sidebar {
        border-radius: 15px !important;
        border-right: 1px solid var(--border) !important;
        margin-left: 0 !important;
    }
    
    .task-content-area {
        border-radius: 15px !important;
        border-left: 1px solid var(--border) !important;
        margin-right: 0 !important;
    }
}

/* Additional compact styles */
.room-hero-section {
    height: 260px !important;
    margin: 10px 0 30px !important;
}

.room-hero-content {
    padding: 0 30px !important;
}

.room-meta-item {
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
}

.task-nav-item {
    padding: 15px !important;
    margin-bottom: 10px !important;
}

.task-number {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.9rem !important;
}

.sidebar-header {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
}

.form-actions {
    margin-top: 20px !important;
}

.task-navigation {
    padding: 20px 30px !important;
    margin-top: 30px !important;
}

.nav-btn {
    padding: 14px 25px !important;
    font-size: 1rem !important;
}

/* Code blocks smaller */
code {
    font-size: 0.85em !important;
    padding: 2px 6px !important;
}

/* ========== ADDITIONAL COMPACT STYLES ========== */

/* Remove space between hero section and content */
.room-hero-section {
    margin: 0 0 20px 0 !important;
}

/* Remove tick mark from completed tasks */
.task-nav-item.completed::after {
    display: none !important;
}

/* Make sidebar flush with left edge */
.room-sidebar {
    margin-left: -20px !important;
    padding-left: 30px !important;
    border-radius: 0 20px 20px 0 !important;
}

/* Make content area flush with right edge */
.task-content-area {
    margin-right: -20px !important;
    padding-right: 20px !important;
    border-radius: 20px 0 0 20px !important;
}

/* Remove margin at bottom before footer */
.room-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.room-content-layout {
    margin-bottom: 0 !important;
}

/* Reduce question text size */
.question-text {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

/* Reduce overall text sizes more */
.task-explanation p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.task-explanation li {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.task-highlights li {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.task-important-note p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Reduce task title size */
.task-title {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
}

/* Reduce room title size */
.room-title {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
}

.room-description {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

/* Reduce room meta item size */
.room-meta-item {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
}

/* Reduce task navigation size */
.nav-btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
}

.task-progress {
    font-size: 0.9rem !important;
    padding: 8px 15px !important;
}

/* Reduce question item padding */
.question-item {
    padding: 15px !important;
    margin-bottom: 15px !important;
}

/* Reduce answer input size */
.answer-input {
    font-size: 0.95rem !important;
    padding: 12px 15px !important;
}

.form-group label {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

/* Reduce submit button size */
.submit-btn, .reset-btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
}

/* Reduce completion badge size */
.completion-badge h3 {
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
}

.completion-badge p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.badge-icon {
    font-size: 3rem !important;
    margin-bottom: 15px !important;
}

/* For mobile responsiveness */
@media (max-width: 992px) {
    .room-sidebar {
        margin-left: 0 !important;
        padding-left: 20px !important;
        border-radius: 20px !important;
    }
    
    .task-content-area {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-radius: 20px !important;
    }
    
    .room-title {
        font-size: 1.6rem !important;
    }
    
    .task-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .room-hero-section {
        height: 220px !important;
    }
    
    .room-title {
        font-size: 1.4rem !important;
    }
    
    .room-description {
        font-size: 0.9rem !important;
    }
    
    .question-text {
        font-size: 0.9rem !important;
    }
    
    .nav-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }
}

/* ========== COMPACT STYLES UPDATE ========== */

/* Remove tick mark from completed tasks */
.task-nav-item.completed::after {
    display: none !important;
}

/* Make sidebar flush with left edge */
.room-sidebar {
    margin-left: -20px !important;
    padding-left: 30px !important;
    border-radius: 0 20px 20px 0 !important;
}

/* Make content area flush with right edge */
.task-content-area {
    margin-right: -20px !important;
    padding-right: 20px !important;
    border-radius: 20px 0 0 20px !important;
}

/* Remove space between hero section and content */
.room-hero-section {
    margin: 0 0 20px 0 !important;
}

/* Remove margin at bottom before footer */
.room-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.room-content-layout {
    margin-bottom: 0 !important;
}

/* Reduce question text size */
.question-text {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

/* Reduce overall text sizes more */
.task-explanation p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.task-explanation li {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.task-highlights li {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.task-important-note p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

/* Reduce task title size */
.task-title {
    font-size: 1.4rem !important;
    margin-bottom: 10px !important;
}

/* Reduce room title size */
.room-title {
    font-size: 2rem !important;
    margin-bottom: 10px !important;
}

.room-description {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    margin-bottom: 15px !important;
}

/* Reduce room meta item size */
.room-meta-item {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
}

/* Reduce task navigation size */
.nav-btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
}

.task-progress {
    font-size: 0.9rem !important;
    padding: 8px 15px !important;
}

/* Reduce question item padding */
.question-item {
    padding: 15px !important;
    margin-bottom: 15px !important;
}

/* Reduce answer input size */
.answer-input {
    font-size: 0.95rem !important;
    padding: 12px 15px !important;
}

.form-group label {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
}

/* Reduce submit button size */
.submit-btn, .reset-btn {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
}

/* Reduce completion badge size */
.completion-badge h3 {
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
}

.completion-badge p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

.badge-icon {
    display: none !important;
}

/* Feedback message smaller */
.feedback-message {
    font-size: 0.9rem !important;
    padding: 15px 20px !important;
}

/* For mobile responsiveness */
@media (max-width: 992px) {
    .room-sidebar {
        margin-left: 0 !important;
        padding-left: 20px !important;
        border-radius: 20px !important;
    }
    
    .task-content-area {
        margin-right: 0 !important;
        padding-right: 0 !important;
        border-radius: 20px !important;
    }
    
    .room-title {
        font-size: 1.6rem !important;
    }
    
    .task-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .room-hero-section {
        height: 220px !important;
    }
    
    .room-title {
        font-size: 1.4rem !important;
    }
    
    .room-description {
        font-size: 0.9rem !important;
    }
    
    .question-text {
        font-size: 0.9rem !important;
    }
    
    .nav-btn {
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
    }
    
    .completion-badge h3 {
        font-size: 1.4rem !important;
    }
}

/* ========== SUBTLE COLOR SCHEME UPDATE ========== */

/* Task navigation buttons - Subtle gray with accent color on hover */
.nav-btn {
    background: var(--surface-light) !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border) !important;
    transition: all 0.3s ease !important;
}

.nav-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.2) !important;
}

.nav-btn-outline {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 2px solid var(--border) !important;
}

.nav-btn-outline:hover {
    background: rgba(0, 102, 255, 0.08) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Task progress indicator - Subtle */
.task-progress {
    background: var(--surface-light) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
}

.task-progress strong {
    color: var(--text-primary) !important;
}

/* Questions section - More subtle */
.questions-section {
    background: var(--surface-light) !important;
    border: 1px solid var(--border) !important;
    border-radius: 15px !important;
}

.questions-section::before {
    display: none !important;
}

.questions-header {
    border-bottom: 1px solid var(--border-light) !important;
}

.questions-header i {
    background: var(--surface) !important;
    color: var(--text-secondary) !important;
}

/* Question items - Clean and professional */
.question-item {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.question-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* Form elements - Clean */
.answer-input {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
}

.answer-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
}

/* Submit button - Professional green */
.submit-btn {
    background: var(--success) !important;
    color: white !important;
    border: none !important;
}

.submit-btn:hover {
    background: #2e7d32 !important;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3) !important;
}

/* Reset button - Subtle */
.reset-btn {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
}

.reset-btn:hover {
    background: rgba(108, 117, 125, 0.1) !important;
    color: var(--text-primary) !important;
    border-color: var(--text-muted) !important;
}

/* Task highlights - Subtle */
.task-highlights {
    background: var(--surface-light) !important;
    border-left: 4px solid var(--border) !important;
}

.task-highlights-header i {
    color: var(--text-secondary) !important;
}

.task-highlights li {
    background: transparent !important;
}

.task-highlights li:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}

/* Important note - Subtle warning */
.task-important-note {
    background: rgba(255, 193, 7, 0.05) !important;
    border-left: 4px solid #ffc107 !important;
}

/* Task header - Clean */
.task-header {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.task-title i {
    background: var(--surface-light) !important;
    color: var(--text-secondary) !important;
}

/* Task navigation items in sidebar - Subtle hover */
.task-nav-item:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: var(--border) !important;
    transform: translateX(3px) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
}

.task-nav-item.active {
    background: var(--surface-light) !important;
    border-color: var(--border) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05) !important;
}

.task-nav-item.active::before {
    background: var(--primary) !important;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.3) !important;
}

.task-nav-item.active .task-number {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    /* Increased blur to 12px and added 2px spread for a stronger green glow */
    box-shadow: 0 4px 12px 2px rgba(144, 238, 144, 0.5) !important;
}

/* Hero section - More professional */
.room-hero-section {
    background: linear-gradient(135deg, var(--surface), var(--surface-light)) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.room-icon {
    background: var(--surface) !important;
    color: var(--primary) !important;
    border: 2px solid var(--border) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.room-meta-item {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-secondary) !important;
}

.room-meta-item:hover {
    background: var(--surface-light) !important;
    border-color: var(--border) !important;
}

.room-meta-item i {
    color: var(--text-secondary) !important;
}

/* Completion badges - Subtle success */
.completion-badge {
    background: rgba(40, 167, 69, 0.05) !important;
    border: 2px solid rgba(40, 167, 69, 0.3) !important;
    animation: none !important;
}

.completion-badge::before {
    display: none !important;
}

.completion-badge h3 {
    color: var(--success) !important;
}

/* Feedback messages - Clean */
.feedback-success {
    background: rgba(40, 167, 69, 0.08) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: var(--success) !important;
}

.feedback-error {
    background: rgba(220, 53, 69, 0.08) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: var(--danger) !important;
}

/* Borders - Consistent */
.room-sidebar, .task-content-area {
    border: 1px solid var(--border) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-btn {
        padding: 10px 15px !important;
    }
    
    .task-progress {
        padding: 8px 15px !important;
    }
}

/* Optional: If you want an even more minimal look */
/* Uncomment the following if you want to remove ALL blue */
/*
.room-title {
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.task-nav-item.active .task-nav-title {
    color: var(--text-primary) !important;
}

.questions-header i {
    background: transparent !important;
}

.task-title i {
    background: transparent !important;
}
*/

/* ========== FIX TASK PROGRESS SIZE ========== */

/* Task progress indicator - Make it smaller and consistent */
.task-progress {
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
}

.task-progress strong {
    font-size: 1rem !important;
    color: var(--text-primary) !important;
}

/* Make all text sizes more consistent */
.task-progress {
    background: var(--surface-light) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
}

/* Adjust navigation button text to match */
.nav-btn {
    font-size: 0.9rem !important;
    padding: 10px 18px !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .task-progress {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }
    
    .task-progress strong {
        font-size: 0.9rem !important;
    }
    
    .nav-btn {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
    }
}

/* ========== YOUTUBE VIDEO EMBED STYLES ========== */

.video-container {
    margin: 25px 0;
    text-align: center;
}

.video-thumbnail {
    position: relative;
    display: inline-block;
    max-width: 560px;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .video-play-button {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 15px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.video-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Video Modal/Lightbox */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-modal iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.close-video:hover {
    color: #ff0000;
}

/* Responsive video */
@media (max-width: 768px) {
    .video-modal iframe {
        height: 300px;
    }
    
    .video-thumbnail {
        max-width: 100%;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}
/* ========== JOIN ROOM & COMPACT STYLES ========== */

/* Room progress section */
.room-progress-section {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Remove unnecessary coloring */
.task-nav-item.active .task-nav-title,
.task-nav-item.active .task-number {
    color: var(--text-primary) !important;
}

.task-nav-item.active .task-number {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.task-nav-item.completed {
    border-color: var(--success) !important;
    background: var(--surface) !important;
}

.task-nav-item.completed .task-number {
    background: var(--surface) !important;
    border-color: var(--success) !important;
    color: var(--text-primary) !important;
}

.task-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.task-nav-item.disabled:hover {
    background: var(--surface) !important;
    transform: none !important;
    border-color: var(--border) !important;
}

/* Adjust room content area to remove extra gap */
.room-container {
    padding-bottom: 20px !important;
    margin-bottom: 0 !important;
}

/* Reduce text sizes globally */
.room-title {
    font-size: 2rem !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.room-description {
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.task-title {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
}

.task-title i {
    color: var(--text-secondary) !important;
    background: none !important;
}

/* Adjust sidebar header */
.sidebar-header h3 {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

.sidebar-header h3 i {
    color: var(--text-secondary) !important;
}

/* Remove footer gap */
.room-page {
    min-height: calc(100vh - 100px) !important;
}

/* Adjust question section spacing */
.questions-section {
    margin-top: 30px !important;
    padding: 20px !important;
}

/* Compact form buttons */
.answer-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.submit-btn, .reset-btn {
    padding: 10px 16px !important;
    font-size: 0.85rem !important;
    min-width: 80px;
}

/* Remove Your Answer label */
.form-group label {
    display: none !important;
}

/* Adjust task navigation buttons */
.task-navigation .nav-btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
}

.task-navigation .nav-btn-outline {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
}

.task-navigation .nav-btn-outline:hover {
    background: var(--surface-light) !important;
    border-color: var(--text-secondary) !important;
}

/* Center align questions header */
.questions-header {
    text-align: center;
}

/* Adjust completion badge */
.completion-badge {
    padding: 20px !important;
    margin-top: 20px !important;
}

.completion-badge h3 {
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

.completion-badge p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
}

/* Reduce room meta size */
.room-meta-item {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.room-meta-item i {
    font-size: 0.9rem !important;
}

/* Adjust room hero section */
.room-hero-section {
    height: 240px !important;
    margin-bottom: 20px !important;
}

.room-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
}

/* Remove blue gradient from hero */
.room-hero-section {
    background: linear-gradient(135deg, var(--surface), var(--surface-light)) !important;
}

.room-banner {
    opacity: 0.3 !important;
}

.room-banner-overlay {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 40%,
        rgba(255, 255, 255, 0.5) 80%,
        rgba(255, 255, 255, 0.2) 100%) !important;
}

/* ========== TCP/IP ROOM SPECIFIC FIXES ========== */

/* Task Sidebar Updates */
.sidebar-header h3 i.fa-tasks {
    color: var(--text-secondary) !important;
}

/* Task Item Colors - Only border on completion */
.task-nav-item.completed {
    border-color: var(--success) !important;
}

.task-nav-item.completed .task-nav-title,
.task-nav-item.completed .task-number {
    color: var(--text-primary) !important;
}

.task-nav-item.completed .task-number {
    background: var(--surface) !important;
    border-color: var(--success) !important;
}

/* No blue coloring for active task */
.task-nav-item.active .task-nav-title,
.task-nav-item.active .task-number {
    color: var(--text-primary) !important;
}

.task-nav-item.active .task-number {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

/* Progress Bar */
.room-progress-section {
    margin: 0 0 20px 0;
    padding: 15px;
    background: var(--surface-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.room-progress-bar {
    background: var(--surface);
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.room-progress-fill {
    height: 100%;
    background: var(--text-primary);
    width: 0%;
    transition: width 0.3s ease;
}

.room-progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
    text-align: right;
}

/* Questions Section - Compact */
.questions-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.questions-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.questions-header i {
    display: none; /* Hide the icon */
}

.answer-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.answer-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.answer-input:disabled {
    background: var(--surface-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.answer-input:focus {
    outline: none;
    border-color: var(--text-secondary);
}

.submit-btn, .reset-btn {
    padding: 10px 16px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.submit-btn:hover, .reset-btn:hover {
    background: var(--surface-light);
}

.submit-btn:disabled, .reset-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Task Navigation Buttons - Clean */
.task-navigation .nav-btn {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
}

.task-navigation .nav-btn:hover {
    background: var(--surface-light) !important;
    border-color: var(--text-secondary) !important;
    color: var(--text-primary) !important;
}

/* Restore original banner styling */
.room-banner-overlay {
    background: linear-gradient(90deg, 
        rgba(15, 20, 25, 0.95) 0%,
        rgba(15, 20, 25, 0.85) 40%,
        rgba(15, 20, 25, 0.5) 80%,
        rgba(15, 20, 25, 0.2) 100%);
    z-index: 2;
}

/* Fix for completion badge showing green text */
.completion-badge h3 {
    color: var(--text-primary) !important;
}

/* Join Room Overlay */
.room-content-locked {
    position: relative;
}

#joinRoomOverlay {
    display: none;
}

.room-content-locked #joinRoomOverlay {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(3px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    border-radius: 0 20px 20px 0;
}

.room-join-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.room-join-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.room-join-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.room-join-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.join-room-btn {
    padding: 12px 30px;
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-room-btn:hover {
    background: var(--surface-light);
    border-color: var(--text-secondary);
}

/* Fix footer gap */
.room-page {
    min-height: calc(100vh - 60px) !important;
}

.room-container {
    padding-bottom: 20px !important;
}

/* ========== TCP/IP ROOM FIXES ========== */

/* Simple Task Sidebar */
.sidebar-header h3 i.fa-tasks {
    color: var(--text-secondary) !important;
}

/* Task Items - Simple */
.task-nav-item.completed {
    border-color: var(--border) !important;
    position: relative;
}

.task-nav-item.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--success);
    font-size: 14px;
    font-weight: bold;
}

/* Remove all blue coloring */
.task-nav-item.active .task-nav-title,
.task-nav-item.active .task-number {
    color: var(--text-primary) !important;
}

.task-nav-item.active .task-number {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

.task-nav-item.active {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

/* Remove the blue left border */
.task-nav-item.active::before {
    display: none;
}

/* Questions - Clean */
.question-text strong {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Form buttons - Same size */
.submit-btn, .reset-btn {
    min-width: 80px !important;
    height: 40px !important;
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
}

/* Answer input takes remaining space */
.answer-input {
    flex: 1;
    min-height: 40px;
}

/* Join room button visible */
.join-room-container {
    display: block !important;
}

/* Remove completion badges */
.completion-badge {
    display: none !important;
}

/* Progress bar */
.room-progress-section {
    margin: 0 0 20px 0 !important;
}

/* Task titles as Task 1, Task 2, etc */
.task-nav-title {
    font-weight: 500 !important;
}

/* Fix question lock message */
.question-lock-message {
    text-align: center;
    padding: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border: 1px dashed var(--border);
    border-radius: 6px;
    margin-top: 10px;
}

/* Remove blue from Q1 text */
.question-text strong {
    color: var(--text-primary) !important;
}

/* ========== MINIMAL FIXES ========== */

/* Fix banner overlay */
.room-banner-overlay {
    background: linear-gradient(90deg, 
        rgba(15, 20, 25, 0.95) 0%,
        rgba(15, 20, 25, 0.85) 40%,
        rgba(15, 20, 25, 0.5) 80%,
        rgba(15, 20, 25, 0.2) 100%) !important;
}

/* Task completion - checkmark only */
.task-nav-item.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
}

/* Questions form - aligned */
.answer-form {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
}

.answer-input {
    flex: 1 !important;
    height: 40px !important;
    min-height: 40px !important;
}

.submit-btn, .reset-btn {
    min-width: 70px !important;
    width: auto !important;
    height: 40px !important;
    padding: 0 15px !important;
}

/* Remove blue from Q1 text */
.question-text strong {
    color: var(--text-primary) !important;
}

/* ========== MINIMAL FIXES ========== */

/* Reset Progress Button */
.reset-progress-container {
    text-align: right;
    margin-bottom: 15px;
}

.reset-progress-btn {
    padding: 8px 15px;
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-progress-btn:hover {
    background: var(--surface-light);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Same icon for all tasks */
.task-title i.fa-book {
    color: var(--text-secondary) !important;
}

/* Questions form - buttons same size */
.submit-btn, .reset-btn {
    min-width: 70px !important;
    max-width: 70px !important;
    width: 70px !important;
}

/* Task completion checkmark */
.task-nav-item.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #28a745;
    font-size: 14px;
    font-weight: bold;
}

/* ========== TCP/IP ROOM SPECIFIC FIXES ========== */

/* Make sure the content block has proper spacing */
.content-block {
    margin-bottom: 25px;
}

/* Ensure questions section is properly styled */
.questions-section {
    margin-top: 30px;
}

/* Fix task navigation button sizing */
.nav-btn {
    min-width: 120px;
}

/* Ensure progress bar is visible */
.room-progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997) !important;
}

/* Fix sidebar header alignment */
.sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Ensure reset button is properly sized */
.reset-progress-btn {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
}

/* Make sure task numbers look consistent */
.task-number {
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix content table responsiveness */
@media (max-width: 768px) {
    .content-table {
        display: block;
        overflow-x: auto;
    }
    
    .answer-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .submit-btn, .reset-btn {
        width: 100%;
        margin-top: 10px;
    }
}