/* ========== VARIABLES (Updated with index.php colors) ========== */
:root {
    --primary: #0066FF;           /* DEEP BLUE */
    --primary-dark: #0047CC;
    --secondary: #00D4FF;         /* BRIGHT CYAN */
    --accent-purple: #9333EA;     /* Electric Purple */
    --accent-orange: #ff6b35;
    --background: #0f1419;        /* Dark background */
    --surface: #1a1f2e;           /* Card background */
    --surface-light: #232838;     /* Lighter surface */
    --surface-lighter: #2c3142;   /* Even lighter surface */
    --text-primary: #ffffff;
    --text-secondary: #b8c2cc;
    --text-muted: #6c757d;
    --border: #2d3748;
    --border-light: #3a4558;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --locked: #475569;
    --glow-blue: 0 0 20px rgba(0, 102, 255, 0.5);
    --glow-green: 0 0 20px rgba(0, 204, 136, 0.5);
    --shadow: rgba(0, 0, 0, 0.4);
    --font-primary: 'Inter', sans-serif;
}

/* ========== ROADMAP BASE STYLES ========== */
.roadmap-page {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.roadmap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.roadmap-section {
    padding: 80px 0;
}

/* ========== ROADMAP BACKGROUND ========== */
.roadmap-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
    z-index: -1;
}

/* ========== ROADMAP HERO SECTION ========== */
.roadmap-hero-section {
    padding-top: 40px; /* 120px se 40px kar dein */
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.9), transparent);
    position: relative;
    z-index: 1;
}

.roadmap-hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.roadmap-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, 
        #00D4FF,           /* Bright Cyan */
        #9333EA,           /* Electric Purple */
        #3B82F6            /* Royal Blue */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roadmap-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.roadmap-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.roadmap-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.roadmap-stat-box:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
}

.roadmap-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.roadmap-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.roadmap-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    animation: roadmap-pulse 2s infinite;
}

.roadmap-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.6);
    gap: 18px;
    animation: none;
}

/* ========== ROADMAP JOURNEY STEPS ========== */
.roadmap-journey-container {
    position: relative;
    padding: 50px 0;
}

/* Step Wrapper */
.roadmap-step-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.roadmap-step-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternate left/right positioning */
.roadmap-step-wrapper:nth-child(odd) {
    flex-direction: row;
}

.roadmap-step-wrapper:nth-child(even) {
    flex-direction: row-reverse;
}

/* Step Spacer */
.roadmap-step-spacer {
    flex: 1;
    min-height: 1px;
}

/* Step Card */
.roadmap-step-card {
    flex: 0 0 550px;
    background: var(--surface);
    border-radius: 20px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.roadmap-step-card.active {
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.roadmap-step-card.completed {
    border-color: var(--success);
}

.roadmap-step-card.locked {
    opacity: 0.8;
    border-color: var(--locked);
}

/* Step Header */
.roadmap-step-header {
    background: var(--surface-light);
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
}

.roadmap-step-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.roadmap-step-number {
    display: flex;
    align-items: center;
    gap: 15px;
}

.roadmap-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    background: var(--background);
    border: 3px solid var(--border);
    transition: all 0.3s ease;
}

.roadmap-step-card.active .roadmap-step-circle {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

.roadmap-step-card.completed .roadmap-step-circle {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.1);
}

.roadmap-step-card.locked .roadmap-step-circle {
    border-color: var(--locked);
    background: rgba(71, 85, 105, 0.1);
}

.roadmap-step-info {
    flex: 1;
}

.roadmap-step-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.roadmap-step-subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.roadmap-step-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.roadmap-status-active {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.roadmap-status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.roadmap-status-locked {
    background: rgba(71, 85, 105, 0.1);
    color: var(--locked);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Step Tabs */
.roadmap-step-tabs {
    display: flex;
    background: rgba(15, 20, 25, 0.8);
    border-bottom: 1px solid var(--border);
}

.roadmap-tab-button {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.roadmap-tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.roadmap-tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
}

/* Tab Content */
.roadmap-tab-content {
    display: none;
    padding: 30px;
    animation: roadmap-fadeIn 0.3s ease;
}

.roadmap-tab-content.active {
    display: block;
}

@keyframes roadmap-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Description Tab */
.roadmap-step-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Feature List */
.roadmap-feature-list {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.roadmap-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.roadmap-feature-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.roadmap-feature-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--secondary);
    min-width: 30px;
}

.roadmap-feature-content h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.roadmap-feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Highlight Box for Important Info */
.roadmap-highlight-box {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.1));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
}

.roadmap-highlight-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.roadmap-highlight-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Flexible Grid Systems */
.roadmap-modules-grid, .roadmap-labs-grid, .roadmap-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 2rem;
}

.roadmap-module-item, .roadmap-lab-item, .roadmap-benefit-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s ease;
}

.roadmap-module-item:hover, .roadmap-lab-item:hover, .roadmap-benefit-item:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.roadmap-module-icon, .roadmap-lab-icon, .roadmap-benefit-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.roadmap-lab-item:hover .roadmap-lab-icon {
    color: var(--secondary);
}

.roadmap-benefit-item:hover .roadmap-benefit-icon {
    color: var(--secondary);
}

.roadmap-module-name, .roadmap-lab-title, .roadmap-benefit-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.roadmap-module-desc, .roadmap-lab-desc, .roadmap-benefit-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Lab-specific styles */
.roadmap-lab-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.roadmap-lab-tag {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Video Items Grid */
.roadmap-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.roadmap-video-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.roadmap-video-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.roadmap-video-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.roadmap-video-icon {
    font-size: 1.8rem;
    color: var(--accent-orange);
}

.roadmap-video-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.roadmap-video-duration {
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: 500;
}

.roadmap-video-desc {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Step Action Buttons */
.roadmap-step-actions {
    display: flex;
    gap: 15px;
    padding: 25px 30px;
    background: rgba(15, 20, 25, 0.8);
    border-top: 1px solid var(--border);
}

.roadmap-action-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.roadmap-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.roadmap-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.roadmap-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.roadmap-btn-outline:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.roadmap-btn-success {
    background: linear-gradient(135deg, var(--success), #1e7e34);
    color: white;
}

.roadmap-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.roadmap-btn-disabled {
    background: var(--locked);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========== ROADMAP COMPLETION SECTION ========== */
.roadmap-completion-section {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(40, 167, 69, 0.05));
    display: none;
}

.roadmap-completion-badge {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success), #1e7e34);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.3);
}

.roadmap-completion-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(to right, 
        #00D4FF,           /* Bright Cyan */
        #9333EA,           /* Electric Purple */
        #3B82F6            /* Royal Blue */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roadmap-completion-subtitle {
    font-size: 1.3rem;
    color: var(--success);
    margin-bottom: 2rem;
    font-weight: 600;
}

.roadmap-completion-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 3rem auto;
}

.roadmap-completion-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.roadmap-completion-stat:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.roadmap-completion-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 5px;
}

.roadmap-completion-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reset Progress Button */
.roadmap-reset-button {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.roadmap-reset-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* ========== ROADMAP MODAL STYLES ========== */
.roadmap-reset-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.roadmap-reset-modal-content {
    background: var(--surface);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid var(--accent-orange);
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: roadmap-modalFadeIn 0.3s ease;
}

@keyframes roadmap-modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.roadmap-reset-modal-title {
    color: var(--accent-orange);
    margin-bottom: 15px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.roadmap-reset-modal-text {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.roadmap-reset-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.roadmap-reset-modal-btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.roadmap-reset-modal-confirm {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
}

.roadmap-reset-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.roadmap-reset-modal-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.roadmap-reset-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* ========== ROADMAP ANIMATIONS ========== */
@keyframes roadmap-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes roadmap-pulse {
    0% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    }
}

/* ========== ROADMAP RESPONSIVE DESIGN ========== */
@media (max-width: 1100px) {
    .roadmap-step-card {
        flex: 0 0 500px;
    }
}

@media (max-width: 992px) {
    .roadmap-hero-title {
        font-size: 2.8rem;
    }
    
    .roadmap-step-card {
        flex: 0 0 450px;
    }
    
    .roadmap-step-title {
        font-size: 1.6rem;
    }
    
    .roadmap-completion-title {
        font-size: 2.5rem;
    }
    
    .roadmap-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Stack steps vertically on mobile */
    .roadmap-step-wrapper {
        flex-direction: column !important;
        margin-bottom: 60px;
    }
    
    .roadmap-step-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .roadmap-step-spacer {
        display: none;
    }
    
    /* Adjust hero section */
    .roadmap-hero-title {
        font-size: 2.2rem;
    }
    
    .roadmap-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .roadmap-stats-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    /* Adjust completion stats */
    .roadmap-completion-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roadmap-step-tabs {
        flex-wrap: wrap;
    }
    
    .roadmap-tab-button {
        flex: 1 0 50%;
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    /* Adjust reset modal */
    .roadmap-reset-modal-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .roadmap-reset-modal-actions {
        flex-direction: column;
    }

    .roadmap-reset-modal-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .roadmap-hero-title {
        font-size: 2rem;
    }
    
    .roadmap-step-header {
        padding: 20px;
    }
    
    .roadmap-step-title {
        font-size: 1.4rem;
    }
    
    .roadmap-completion-title {
        font-size: 2rem;
    }
    
    .roadmap-completion-stats {
        grid-template-columns: 1fr;
    }
    
    .roadmap-cta-button, .roadmap-action-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .roadmap-step-tabs {
        flex-direction: column;
    }
    
    .roadmap-tab-button {
        flex: 1 0 100%;
    }
}

/* ========== ROADMAP UTILITY CLASSES ========== */
.roadmap-hidden {
    display: none !important;
}

.roadmap-visible {
    display: block !important;
}

.roadmap-fade-in {
    animation: roadmap-fadeInUp 0.8s ease forwards;
}

/* ========== MODULES PAGE STYLES ========== */

.modules-page {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

.modules-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
    z-index: -1;
}

.modules-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modules Header */
.modules-header {
    padding: 60px 0 40px;
    text-align: center;
}

.modules-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modules-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modules-breadcrumb a:hover {
    color: var(--primary);
}

.modules-breadcrumb i {
    font-size: 0.8rem;
}

.modules-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(to right, 
        #00D4FF,           /* Bright Cyan */
        #9333EA,           /* Electric Purple */
        #3B82F6            /* Royal Blue */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modules-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress Bar */
.modules-progress-section {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 20px;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.modules-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modules-progress-label {
    font-weight: 600;
    color: var(--text-primary);
}

.modules-progress-percent {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.modules-progress-bar {
    height: 10px;
    background: var(--surface-light);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.modules-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 0.5s ease;
}

.modules-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px 0 80px;
}

.modules-card {
    background: var(--surface);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modules-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.modules-card.completed {
    border-color: var(--success);
}

.modules-card.completed:hover {
    box-shadow: 0 20px 40px rgba(40, 167, 69, 0.2);
}

.modules-card.locked {
    opacity: 0.7;
    border-color: var(--locked);
}

.modules-card.locked:hover {
    transform: none;
    border-color: var(--locked);
    box-shadow: none;
    cursor: not-allowed;
}

/* Module Status Badge */
.module-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.module-status-available {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.module-status-completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.module-status-locked {
    background: rgba(71, 85, 105, 0.1);
    color: var(--locked);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Module Header */
.module-header {
    padding: 25px 25px 15px;
    position: relative;
}

.module-number {
    width: 50px;
    height: 50px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.modules-card:hover .module-number {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1);
    transform: scale(1.05);
}

.modules-card.completed .module-number {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.modules-card.locked .module-number {
    border-color: var(--locked);
    background: rgba(71, 85, 105, 0.1);
    color: var(--locked);
}

.module-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.module-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Module Content */
.module-content {
    padding: 0 25px 20px;
    flex-grow: 1;
}

.module-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.module-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.module-feature i {
    color: var(--secondary);
    width: 20px;
}

/* Module Stats */
.module-stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.module-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.module-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.modules-card.completed .module-stat-value {
    color: var(--success);
}

.module-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Module Footer */
.module-footer {
    padding: 20px 25px;
    background: rgba(15, 20, 25, 0.8);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.module-actions {
    display: flex;
    gap: 10px;
}

.module-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.module-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.module-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.module-btn-success {
    background: linear-gradient(135deg, var(--success), #1e7e34);
    color: white;
}

.module-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.module-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.module-btn-outline:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.module-btn-disabled {
    background: var(--locked);
    color: var(--text-muted);
    cursor: not-allowed;
}

.module-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Search and Filter Bar */
.modules-filter-bar {
    background: var(--surface);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    display: flex;
    gap: 15px;
    align-items: center;
}

.modules-search {
    flex: 1;
    position: relative;
}

.modules-search input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modules-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.modules-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown select {
    padding: 14px 20px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    min-width: 150px;
    appearance: none;
    padding-right: 45px;
}

.filter-dropdown::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Empty State */
.modules-empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.modules-empty-icon {
    font-size: 4rem;
    color: var(--locked);
    margin-bottom: 20px;
}

.modules-empty-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modules-empty-text {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modules-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .modules-title {
        font-size: 2.2rem;
    }
    
    .modules-subtitle {
        font-size: 1.1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modules-filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .modules-search,
    .filter-dropdown {
        width: 100%;
    }
    
    .filter-dropdown select {
        width: 100%;
    }
    
    .module-actions {
        flex-direction: column;
    }
    
    .module-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modules-title {
        font-size: 1.8rem;
    }
    
    .modules-header {
        padding: 40px 0 30px;
    }
    
    .module-header {
        padding: 20px 20px 15px;
    }
    
    .module-content {
        padding: 0 20px 15px;
    }
    
    .module-footer {
        padding: 15px 20px;
    }
    
    .module-title {
        font-size: 1.3rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(to right, #00D4FF, #9333EA, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== MODULES PAGE STYLES (UPDATED) ========== */

/* Remove progress section styles */
.modules-progress-section {
    display: none; /* Remove progress section */
}

/* Remove status badges from modules */
.module-status {
    display: none; /* Remove status badges */
}

/* Update module stats colors to use blue/purple scheme */
.module-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary); /* Blue color */
}

.module-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Update feature icons to use secondary/cyan color */
.module-feature i {
    color: var(--secondary); /* Cyan color */
    width: 20px;
}

/* Module number styling - using blue theme */
.module-number {
    width: 50px;
    height: 50px;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary); /* Blue color */
    margin-bottom: 15px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.modules-card:hover .module-number {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.1); /* Blue tint */
    transform: scale(1.05);
}

/* Remove all green color classes */
.module-btn-success,
.modules-card.completed,
.module-status-completed {
    display: none !important; /* Remove all green elements */
}

/* Update button to use only primary style */
.module-actions {
    display: flex;
    gap: 0; /* No gap since only one button */
}

.module-btn {
    width: 100%; /* Full width button */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); /* Blue to cyan */
    color: white;
}

.module-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3); /* Blue shadow */
}

/* Remove the disabled button styles since we don't need them */
.module-btn-disabled {
    display: none;
}

/* Update search placeholder text */
.modules-search input::placeholder {
    color: var(--text-muted);
}

/* Make sure no green colors appear anywhere */
:root {
    --success: var(--primary); /* Replace green with blue if used elsewhere */
}

/* ========== MODULES PAGE UPDATED STYLES ========== */

/* Improved module number styling */
.module-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.module-number-prefix {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.module-number-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.modules-card:hover .module-number {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    border-color: var(--primary);
}

/* Improved module title styling */
.module-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
    min-height: 2.6em; /* Ensure consistent height */
}

/* Remove module subtitle */
.module-subtitle {
    display: none;
}

/* Adjust module header spacing */
.module-header {
    padding: 30px 30px 20px;
    position: relative;
    min-height: 140px; /* Give more space for title */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Adjust module content spacing */
.module-content {
    padding: 0 30px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.module-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

/* Improved feature list */
.module-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.module-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.module-feature i {
    color: var(--secondary);
    width: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Improved stats layout */
.module-stats {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.module-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.module-stat:hover {
    background: rgba(0, 102, 255, 0.1);
    transform: translateY(-2px);
}

.module-stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.module-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Improved button styling */
.module-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 25px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
    overflow: hidden;
}

.module-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.module-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.4);
}

.module-btn:hover::before {
    left: 100%;
}

.module-btn i {
    font-size: 1.2rem;
}

/* Card height adjustment */
.modules-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 580px; /* Increased minimum height */
}

.modules-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .module-title {
        font-size: 1.5rem;
    }
    
    .module-number {
        width: 65px;
        height: 65px;
    }
    
    .module-number-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 992px) {
    .module-title {
        font-size: 1.4rem;
    }
    
    .module-number {
        width: 60px;
        height: 60px;
    }
    
    .module-number-value {
        font-size: 1.5rem;
    }
    
    .module-number-prefix {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .module-title {
        font-size: 1.3rem;
    }
    
    .module-header {
        padding: 25px 25px 15px;
        min-height: 120px;
    }
    
    .module-content {
        padding: 0 25px 15px;
    }
    
    .module-number {
        width: 55px;
        height: 55px;
        margin-bottom: 15px;
    }
    
    .module-number-value {
        font-size: 1.3rem;
    }
    
    .module-number-prefix {
        font-size: 0.6rem;
    }
    
    .modules-card {
        min-height: 550px;
    }
}

@media (max-width: 576px) {
    .module-title {
        font-size: 1.2rem;
    }
    
    .module-header {
        padding: 20px 20px 15px;
        min-height: 110px;
    }
    
    .module-content {
        padding: 0 20px 15px;
    }
    
    .module-number {
        width: 50px;
        height: 50px;
    }
    
    .module-number-value {
        font-size: 1.2rem;
    }
    
    .module-number-prefix {
        font-size: 0.55rem;
    }
    
    .module-feature {
        font-size: 0.9rem;
    }
    
    .module-stat-value {
        font-size: 1.2rem;
    }
    
    .module-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .modules-card {
        min-height: 520px;
    }
}
/* ========== ROOM PAGE STYLES (CORRECTED 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.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 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;
}

/* ========== IMPROVED HERO SECTION ========== */
.room-hero-section {
    position: relative;
    height: 320px;
    margin: 20px 0 40px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.room-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.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.4) 80%,
        rgba(15, 20, 25, 0) 100%);
    z-index: 2;
}

.room-hero-content {
    position: relative;
    z-index: 3;
    padding: 0 40px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
}

.room-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.room-title-wrapper {
    flex: 1;
}

.room-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.room-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    font-weight: 300;
}

.room-meta {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.room-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.room-meta-item i {
    color: var(--secondary);
}

/* ========== IMPROVED CONTENT LAYOUT ========== */
.room-content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* ========== SIDEBAR - ALL TASKS VISIBLE ========== */
.room-sidebar {
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header h3 i {
    color: var(--primary);
}

.tasks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-nav-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.task-nav-item:hover:not(.disabled) {
    background: rgba(0, 102, 255, 0.08);
    border-color: var(--primary);
    transform: translateX(5px);
}

.task-nav-item.active {
    background: rgba(0, 102, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
}

.task-nav-item.active::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

.task-nav-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.task-number {
    width: 34px;
    height: 34px;
    background: var(--background);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 2px solid var(--border);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.task-nav-item.active .task-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.task-nav-item.completed .task-number {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border-color: rgba(40, 167, 69, 0.3);
}

.task-nav-content {
    flex: 1;
}

.task-nav-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.task-nav-item.active .task-nav-title {
    color: var(--primary);
}

.task-nav-item.disabled .task-nav-title {
    color: var(--text-muted);
}

.task-nav-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.task-nav-item.disabled .task-nav-desc {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========== TASK CONTENT AREA ========== */
.task-content-area {
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.task-header {
    background: var(--surface-light);
    padding: 30px 35px;
    border-bottom: 1px solid var(--border);
}

.task-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.task-title i {
    color: var(--primary);
    font-size: 1.6rem;
}

.task-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 900px;
}

.task-body {
    padding: 35px;
}

/* ========== TASK CONTENT STYLING ========== */
.task-section {
    margin-bottom: 35px;
}

.task-section:last-child {
    margin-bottom: 0;
}

.task-content-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.task-content-text p {
    margin-bottom: 20px;
}

.task-content-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.task-content-text em {
    color: var(--secondary);
    font-style: italic;
}

.task-content-text ul, .task-content-text ol {
    margin: 20px 0 20px 25px;
    padding: 0;
}

.task-content-text li {
    margin-bottom: 12px;
    padding-left: 10px;
}

.task-content-text li::marker {
    color: var(--primary);
}

/* ========== TASK FEATURES LIST ========== */
.task-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.task-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.task-feature-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.task-feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== QUESTIONS SECTION ========== */
.questions-section {
    background: rgba(0, 102, 255, 0.05);
    border: 2px solid rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
}

.questions-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.questions-header i {
    font-size: 1.6rem;
    color: var(--primary);
}

.questions-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.question-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.question-text strong {
    color: var(--primary);
}

.answer-form {
    margin-top: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.answer-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.answer-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: var(--surface-light);
}

.answer-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.answer-format {
    background: rgba(0, 102, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--primary);
}

.answer-format strong {
    color: var(--primary);
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.submit-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.reset-btn {
    padding: 14px 25px;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

/* ========== FEEDBACK MESSAGES ========== */
.feedback-message {
    padding: 18px;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: var(--success);
}

.feedback-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--danger);
}

/* ========== TASK NAVIGATION ========== */
.task-navigation {
    display: flex;
    justify-content: space-between;
    padding: 25px 35px;
    background: var(--surface-light);
    border-top: 1px solid var(--border);
    margin-top: 30px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3);
}

.nav-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.nav-btn-outline:hover {
    background: rgba(0, 102, 255, 0.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.task-progress strong {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ========== COMPLETION BADGE ========== */
.completion-badge {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px dashed var(--success);
    border-radius: 15px;
    margin-top: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { border-color: rgba(40, 167, 69, 0.5); }
    50% { border-color: rgba(40, 167, 69, 0.8); }
    100% { border-color: rgba(40, 167, 69, 0.5); }
}

.badge-icon {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.completion-badge h3 {
    font-size: 1.8rem;
    color: var(--success);
    margin-bottom: 15px;
    font-weight: 800;
}

.completion-badge p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .room-content-layout {
        grid-template-columns: 250px 1fr;
        gap: 25px;
    }
    
    .room-title {
        font-size: 2.2rem;
    }
    
    .task-body, .task-header {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .room-hero-section {
        height: 280px;
        margin: 15px 0 30px;
    }
    
    .room-hero-content {
        padding: 0 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .room-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .room-title {
        font-size: 2rem;
    }
    
    .room-description {
        font-size: 1.1rem;
    }
    
    .room-content-layout {
        grid-template-columns: 1fr;
    }
    
    .room-sidebar {
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
    
    .tasks-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .task-nav-item {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .room-hero-section {
        height: 240px;
    }
    
    .room-hero-content {
        padding: 0 25px;
    }
    
    .room-title {
        font-size: 1.8rem;
    }
    
    .room-meta {
        gap: 15px;
    }
    
    .room-meta-item {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .task-header {
        padding: 25px;
    }
    
    .task-title {
        font-size: 1.6rem;
    }
    
    .task-body {
        padding: 25px;
    }
    
    .questions-section {
        padding: 25px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-btn, .reset-btn {
        width: 100%;
    }
    
    .task-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 25px;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .task-progress {
        order: -1;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .room-hero-section {
        height: 220px;
        border-radius: 12px;
    }
    
    .room-hero-content {
        padding: 0 20px;
    }
    
    .room-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    
    .room-title {
        font-size: 1.6rem;
    }
    
    .room-description {
        font-size: 1rem;
    }
    
    .task-header, .task-body {
        padding: 20px;
    }
    
    .task-title {
        font-size: 1.4rem;
    }
    
    .question-item {
        padding: 20px;
    }
    
    .completion-badge {
        padding: 30px 20px;
    }
}
