/* Base Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --border-radius: 16px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

.btn-logout {
    color: #ef4444;
    font-size: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
}

.btn-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Hero Section */
.programme-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.programme-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.programme-hero h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.programme-hero h1 span {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Introduction Cards */
.intro-section {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.intro-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.intro-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.intro-card p {
    margin: 0;
    color: var(--dark);
    line-height: 1.7;
    font-size: 15px;
}

.intro-card strong {
    color: var(--primary-dark);
}

.highlight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: var(--warning);
    position: relative;
}

.highlight-box::before {
    content: '⭐';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
}

/* Get Started Button */
.start-container {
    text-align: center;
    margin: 50px 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-get-start {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-get-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-get-start:hover::before {
    left: 100%;
}

.btn-get-start:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.5);
}

.btn-get-start .rocket {
    display: inline-block;
    margin-right: 10px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Weekly Wrapper */
.weekly-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Bar */
.progress-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 18px;
}

.progress-stats {
    color: var(--gray);
    font-size: 14px;
}

.progress-bar-track {
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-out;
}

/* Weeks Container */
.weeks-container {
    display: none;
}

/* Week Card */
.week-card {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.week-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.week-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.week-card.active {
    border: 2px solid var(--primary);
}

/* Week Header */
.week-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.week-header:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.week-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.week-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.week-info h3 {
    margin: 0 0 5px 0;
    font-size: 17px;
    color: var(--dark);
    font-weight: 600;
}

.week-info span {
    font-size: 13px;
    color: var(--gray);
}

.week-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.enabled {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.status-badge.disabled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.status-badge.coming-soon {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.toggle-icon {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.week-card.active .toggle-icon {
    transform: rotate(45deg);
    background: var(--primary);
    color: white;
}

/* Week Body */
.week-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    padding: 0 25px;
    background: white;
}

.week-body.open {
    max-height: 800px;
    padding: 25px;
    border-top: 1px solid #e2e8f0;
}

.week-focus {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.week-focus .icon {
    font-size: 24px;
}

.week-focus p {
    margin: 0;
    color: var(--dark);
    font-weight: 500;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
}

.content-section:hover {
    background: #f1f5f9;
    transform: translateY(-3px);
}

.content-section h6 {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: var(--dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-section h6 .emoji {
    font-size: 20px;
}

.content-section a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-size: 14px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.content-section a:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary);
}

.content-section a::before {
    content: '📄';
}

.content-section a:hover::before {
    content: '⬇️';
}

/* Action Buttons */
.week-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-action {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-action.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-action.secondary {
    background: white;
    color: var(--dark);
    border: 2px solid #e2e8f0;
}

.btn-action.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Navigation Header */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .programme-hero {
        padding: 30px 20px;
    }

    .programme-hero h1 {
        font-size: 24px;
    }

    .week-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .week-header-left {
        flex-direction: column;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .btn-get-start {
        padding: 15px 35px;
        font-size: 18px;
    }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Toggle Switch for Enable/Disable */
.module-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.module-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.module-toggle input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.module-toggle input:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
}

.toggle-label.enabled {
    color: var(--success);
}

.toggle-label.disabled {
    color: var(--danger);
}

/* Disabled week card style */
.week-card.module-disabled {
    opacity: 0.6;
}

.week-card.module-disabled .week-body {
    pointer-events: none;
}

.week-card.module-disabled .status-badge {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}