:root {
    --primary: #0a3d62;
    --primary-dark: #0c2d48;
    --secondary: #2e86c1;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #27ae60;
    --danger: #e74c3c;
    --gradient: linear-gradient(135deg, #0a3d62 0%, #2e86c1 100%);
    --gradient-accent: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --tanzania-green: #1B4D3E;
    --tanzania-yellow: #FCD116;
    --tanzania-red: #E81D1D;
    --tanzania-blue: #00A3DD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.logo-text span {
    color: var(--accent);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    transition: all 0.3s ease;
}

.nav-menu li a {
    color: var(--dark);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 500;
    display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--gradient);
    color: white;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Slider - Fixed */
.hero-section {
    height: 85vh;
    overflow: hidden;
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide Styles - No white flash */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active .slide-bg {
    transform: scale(1.05);
    transition: transform 3s ease-in-out;
}

/* Dark overlay */
.slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.slide-content {
    position: absolute;
    bottom: 25%;
    left: 10%;
    color: white;
    z-index: 3;
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.btn-hero {
    display: inline-block;
    padding: 12px 35px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: #e67e22;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s;
}

.slider-btn:hover {
    background: var(--accent);
}

.prev { left: 20px; }
.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* Features Section */
.features-section {
    padding: 70px 0;
    background: white;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

h2 span {
    color: var(--tanzania-green);
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--tanzania-yellow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--tanzania-green);
    margin: 30px 0 15px;
}

.feature-card h3 {
    margin: 0 20px 10px;
    color: var(--dark);
    font-size: 1.3rem;
}

.feature-card p {
    padding: 0 25px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-image {
    width: 100%;
    margin-top: auto;
}

.feature-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Modules Section */
.modules-section {
    padding: 70px 0;
    background: #f0f4f8;
}

.modules-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0 40px;
}

.tab-btn {
    padding: 12px 35px;
    background: white;
    border: 2px solid var(--tanzania-green);
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--tanzania-green);
}

.tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.tab-btn:hover {
    transform: translateY(-2px);
    background: var(--tanzania-yellow);
    color: var(--tanzania-green);
    border-color: var(--tanzania-yellow);
}

.module-class {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.module-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.module-icon {
    font-size: 2.5rem;
    color: var(--tanzania-green);
    margin: 25px 0 10px;
}

.module-card h3 {
    margin: 10px 20px;
    color: var(--dark);
    font-size: 1.2rem;
}

.module-card p {
    padding: 0 20px;
    color: #666;
    line-height: 1.6;
}

.module-level-badge {
    display: inline-block;
    margin: 15px auto 10px;
    padding: 5px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
}

.level-a {
    background: var(--tanzania-yellow);
    color: var(--tanzania-green);
}

.level-b {
    background: var(--tanzania-green);
    color: white;
}

.btn-module {
    display: inline-block;
    margin: 10px auto 20px;
    padding: 10px 30px;
    background: var(--gradient);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: var(--tanzania-yellow);
    color: var(--tanzania-green);
}

.module-image {
    width: 100%;
}

.module-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* Login & Register Forms */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 45px 50px;
    width: 100%;
    max-width: 550px;
    transition: transform 0.3s;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form .form-group {
    margin-bottom: 25px;
}

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

.auth-form .form-group input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.auth-form .form-group input:focus {
    border-color: var(--tanzania-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

.auth-form .form-group input::placeholder {
    color: #aaa;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0c2d48 0%, #2e86c1 100%);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: var(--tanzania-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: var(--tanzania-yellow);
    color: var(--tanzania-green);
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: var(--tanzania-green);
    border-left: 4px solid var(--tanzania-green);
}

.alert-error {
    background: #f8d7da;
    color: var(--tanzania-red);
    border-left: 4px solid var(--tanzania-red);
}

/* Footer - Tanzania Flag Colors Gradient (Kama za mwanzo) */
.footer {
    background: linear-gradient(135deg, 
        var(--tanzania-green) 0%, 
        var(--tanzania-green) 20%,
        var(--tanzania-yellow) 20%,
        var(--tanzania-yellow) 40%,
        var(--tanzania-red) 40%,
        var(--tanzania-red) 60%,
        var(--tanzania-blue) 60%,
        var(--tanzania-blue) 80%,
        var(--tanzania-green) 80%,
        var(--tanzania-green) 100%
    );
    background-size: 200% 100%;
    color: white;
    padding: 50px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px;
}

.footer-section .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-section .logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--tanzania-yellow);
}

.footer-section p {
    margin: 12px 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--tanzania-yellow);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin: 0;
}

.social-icons a:hover {
    background: var(--tanzania-yellow);
    color: var(--tanzania-green);
    transform: translateY(-3px);
    padding-left: 0;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: var(--tanzania-red);
    border: none;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--tanzania-yellow);
    color: var(--tanzania-green);
}

/* Responsive */
@media (max-width: 992px) {
    .slide-content h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .auth-card { padding: 35px 30px; max-width: 500px; }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 20px;
        transition: left 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .slide-content {
        left: 5%;
        right: 5%;
        bottom: 20%;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .features-grid, .module-class {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section .logo {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 15px auto 0;
    }

    .auth-card {
        padding: 30px 25px;
        max-width: 95%;
    }

    .auth-header h2 {
        font-size: 1.6rem;
    }

    .auth-form .form-group input {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .btn-hero {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .auth-card {
        padding: 25px 20px;
    }
}

/* Footer - Tanzania Flag Colors (Kijani, Njano, Nyeusi, Bluu) */
.footer {
    background: linear-gradient(135deg, 
        #1EB53A 0%, 
        #1EB53A 25%,
        #FCD116 25%,
        #FCD116 50%,
        #000000 50%,
        #000000 75%,
        #00A3E0 75%,
        #00A3E0 100%
    );
    background-size: 200% 100%;
    color: white;
    padding: 50px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 50px;
}

.footer-section .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-section .logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #FCD116;
}

.footer-section p {
    margin: 12px 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: #FCD116;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin: 0;
}

.social-icons a:hover {
    background: #FCD116;
    color: #1EB53A;
    transform: translateY(-3px);
    padding-left: 0;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form button {
    background: #000000;
    border: none;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: #FCD116;
    color: #1EB53A;
}

/* Feature Card - Picha Juu, Maelezo Chini */
.feature-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--tanzania-yellow);
}

.feature-image {
    width: 100%;
    order: 1;
}

.feature-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.feature-icon {
    font-size: 3rem;
    color: var(--tanzania-green);
    margin: 20px 0 10px;
    order: 2;
}

.feature-card h3 {
    margin: 10px 20px;
    color: var(--dark);
    font-size: 1.3rem;
    order: 3;
}

.feature-card p {
    padding: 0 25px 25px;
    color: #666;
    line-height: 1.6;
    order: 4;
}

/* Feature Card - Picha Juu, Hakuna Icon */
.feature-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--tanzania-yellow);
}

.feature-image {
    width: 100%;
}

.feature-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.feature-card h3 {
    margin: 20px 20px 10px;
    color: var(--dark);
    font-size: 1.3rem;
}

.feature-card p {
    padding: 0 25px 25px;
    color: #666;
    line-height: 1.6;
}

/* Password input with eye icon */
.password-group {
    position: relative;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--tanzania-green);
}

/* Dashboard Specific Styles */
.dashboard-container {
    padding: 40px 20px;
}

.dashboard-welcome {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.dashboard-welcome h2 {
    color: white;
    text-align: left;
    margin-bottom: 10px;
}

.dashboard-welcome p {
    margin-bottom: 0;
}

/* Progress bar styles */
.progress-section {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #1B4D3E, #00A3E0);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Modules grid with better spacing */
.modules-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.dashboard-module-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 0;
}

.dashboard-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.module-header-dashboard {
    background: linear-gradient(135deg, #0a3d62 0%, #2e86c1 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.module-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-A-dash {
    background: #FCD116;
    color: #1B4D3E;
}

.level-B-dash {
    background: #1EB53A;
    color: white;
}

.module-body-dashboard {
    padding: 20px;
}

.module-body-dashboard p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.module-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.btn-start {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1B4D3E 0%, #00A3E0 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Final exam card */
.final-exam-card {
    background: linear-gradient(135deg, #FCD116 0%, #F39C12 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.final-exam-card h3 {
    color: #1B4D3E;
    margin-bottom: 15px;
}

.final-exam-card p {
    color: #333;
    margin-bottom: 20px;
}

.btn-exam {
    display: inline-block;
    padding: 12px 35px;
    background: #1B4D3E;
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-exam:hover {
    background: #0a3d62;
    transform: scale(1.02);
}

.btn-exam-disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Extra margin bottom for cards */
.dashboard-module-card:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modules-grid-dashboard {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .dashboard-welcome {
        padding: 20px;
    }
    
    .dashboard-welcome h2 {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* ADMIN PANEL STYLES
/* ============================================ */

/* Admin Container */
.admin-container {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h2 {
    color: white;
    margin: 0;
    text-align: left;
}

.admin-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.admin-badge {
    background: #FCD116;
    color: #1B4D3E;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Admin Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: #1B4D3E;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0a3d62;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Admin Cards Grid */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.admin-card-header {
    background: linear-gradient(135deg, #0a3d62 0%, #2e86c1 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.admin-card-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.admin-card-body {
    padding: 20px;
    text-align: center;
}

.admin-card-body p {
    color: #666;
    margin-bottom: 20px;
}

.admin-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-table thead {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.admin-table tr:hover {
    background: #f5f5f5;
}

/* Admin Buttons */
.btn-admin {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1B4D3E 0%, #00A3E0 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-edit {
    background: #FCD116;
    color: #1B4D3E;
}

.btn-delete {
    background: #E81D1D;
    color: white;
}

.btn-view {
    background: #2e86c1;
    color: white;
}

/* Admin Form */
.admin-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.admin-form h3 {
    margin-bottom: 20px;
    color: #1B4D3E;
    border-left: 4px solid #FCD116;
    padding-left: 15px;
}

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

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #1B4D3E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header h2 {
        text-align: center;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* ADMIN PANEL STYLES
/* ============================================ */

/* Admin Container */
.admin-container {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h2 {
    color: white;
    margin: 0;
    text-align: left;
}

.admin-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.admin-badge {
    background: #FCD116;
    color: #1B4D3E;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Admin Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    color: #1B4D3E;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0a3d62;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Admin Cards Grid */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.admin-card-header {
    background: linear-gradient(135deg, #0a3d62 0%, #2e86c1 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.admin-card-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.admin-card-body {
    padding: 20px;
    text-align: center;
}

.admin-card-body p {
    color: #666;
    margin-bottom: 20px;
}

.admin-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-table thead {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.admin-table tr:hover {
    background: #f5f5f5;
}

/* Admin Buttons */
.btn-admin {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1B4D3E 0%, #00A3E0 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-edit {
    background: #FCD116;
    color: #1B4D3E;
}

.btn-delete {
    background: #E81D1D;
    color: white;
}

.btn-view {
    background: #2e86c1;
    color: white;
}

/* Admin Form */
.admin-form {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.admin-form h3 {
    margin-bottom: 20px;
    color: #1B4D3E;
    border-left: 4px solid #FCD116;
    padding-left: 15px;
}

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

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: #1B4D3E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header h2 {
        text-align: center;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* ADMIN PANEL - RANGI NZURI ZAIDI
/* ============================================ */

/* Admin Container */
.admin-container {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f0f2f5;
    min-height: calc(100vh - 200px);
}

/* Admin Header - Rangi ya Kijani ya Tanzania */
.admin-header {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.admin-header h2 {
    color: white;
    margin: 0;
    text-align: left;
    font-size: 1.8rem;
}

.admin-header h2 i {
    color: #FCD116;
    margin-right: 10px;
}

.admin-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.admin-badge {
    background: #FCD116;
    color: #1B4D3E;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Admin Stats Grid - Rangi tofauti kwa kila box */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.stat-box:nth-child(1)::before { background: #1B4D3E; }
.stat-box:nth-child(2)::before { background: #FCD116; }
.stat-box:nth-child(3)::before { background: #E81D1D; }
.stat-box:nth-child(4)::before { background: #00A3E0; }
.stat-box:nth-child(5)::before { background: #8E44AD; }

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-box:nth-child(1) .stat-icon { color: #1B4D3E; }
.stat-box:nth-child(2) .stat-icon { color: #FCD116; }
.stat-box:nth-child(3) .stat-icon { color: #E81D1D; }
.stat-box:nth-child(4) .stat-icon { color: #00A3E0; }
.stat-box:nth-child(5) .stat-icon { color: #8E44AD; }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Admin Cards Grid */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.admin-card-header {
    padding: 25px 20px;
    text-align: center;
    color: white;
}

.admin-card-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

/* Rangi tofauti kwa kila card */
.admin-card:nth-child(1) .admin-card-header { background: linear-gradient(135deg, #E81D1D, #c0392b); }
.admin-card:nth-child(2) .admin-card-header { background: linear-gradient(135deg, #1B4D3E, #0a3d62); }
.admin-card:nth-child(3) .admin-card-header { background: linear-gradient(135deg, #FCD116, #f39c12); }
.admin-card:nth-child(4) .admin-card-header { background: linear-gradient(135deg, #00A3E0, #2980b9); }
.admin-card:nth-child(5) .admin-card-header { background: linear-gradient(135deg, #8E44AD, #6c3483); }
.admin-card:nth-child(6) .admin-card-header { background: linear-gradient(135deg, #e67e22, #d35400); }

.admin-card-body {
    padding: 20px;
    text-align: center;
}

.admin-card-body p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.admin-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

/* Admin Buttons */
.btn-admin {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1B4D3E 0%, #00A3E0 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #0a3d62 0%, #2e86c1 100%);
}

.btn-admin i {
    margin-right: 8px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-table thead {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.admin-table tr:hover {
    background: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-header h2 {
        text-align: center;
        font-size: 1.4rem;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-cards {
        grid-template-columns: 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================ */
/* ADMIN DASHBOARD - RANGI ZA CARDS
/* ============================================ */

/* Rangi tofauti kwa kila card ya admin */
.admin-card:nth-child(1) .admin-card-header { 
    background: linear-gradient(135deg, #E81D1D, #c0392b); 
}
.admin-card:nth-child(2) .admin-card-header { 
    background: linear-gradient(135deg, #1B4D3E, #0a3d62); 
}
.admin-card:nth-child(3) .admin-card-header { 
    background: linear-gradient(135deg, #FCD116, #f39c12); 
}
.admin-card:nth-child(4) .admin-card-header { 
    background: linear-gradient(135deg, #00A3E0, #2980b9); 
}
.admin-card:nth-child(5) .admin-card-header { 
    background: linear-gradient(135deg, #8E44AD, #6c3483); 
}
.admin-card:nth-child(6) .admin-card-header { 
    background: linear-gradient(135deg, #e67e22, #d35400); 
}

/* Rangi za stat boxes */
.stat-box:nth-child(1) { border-top: 4px solid #1B4D3E; }
.stat-box:nth-child(2) { border-top: 4px solid #FCD116; }
.stat-box:nth-child(3) { border-top: 4px solid #E81D1D; }
.stat-box:nth-child(4) { border-top: 4px solid #00A3E0; }
.stat-box:nth-child(5) { border-top: 4px solid #8E44AD; }

.stat-box:nth-child(1) .stat-icon { color: #1B4D3E; }
.stat-box:nth-child(2) .stat-icon { color: #FCD116; }
.stat-box:nth-child(3) .stat-icon { color: #E81D1D; }
.stat-box:nth-child(4) .stat-icon { color: #00A3E0; }
.stat-box:nth-child(5) .stat-icon { color: #8E44AD; }

/* Admin header badge */
.admin-badge {
    background: #FCD116;
    color: #1B4D3E;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
}

/* Hover effects */
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.btn-admin {
    background: linear-gradient(135deg, #1B4D3E, #00A3E0);
}

.btn-admin:hover {
    background: linear-gradient(135deg, #0a3d62, #2e86c1);
}

/* ============================================ */
/* ADMIN CARDS - RANGI ZA KILA CARD
/* ============================================ */

/* Card 1 - Video (Nyekundu) */
.admin-card:first-child .admin-card-header {
    background: linear-gradient(135deg, #E81D1D, #c0392b) !important;
}

/* Card 2 - Notes (Kijani) */
.admin-card:nth-child(2) .admin-card-header {
    background: linear-gradient(135deg, #1B4D3E, #0a3d62) !important;
}

/* Card 3 - Quiz (Njano) */
.admin-card:nth-child(3) .admin-card-header {
    background: linear-gradient(135deg, #FCD116, #f39c12) !important;
    color: #1B4D3E !important;
}
.admin-card:nth-child(3) .admin-card-header h3 {
    color: #1B4D3E !important;
}

/* Card 4 - Modules (Bluu) */
.admin-card:nth-child(4) .admin-card-header {
    background: linear-gradient(135deg, #00A3E0, #2980b9) !important;
}

/* Card 5 - Wanafunzi (Zambarau) */
.admin-card:nth-child(5) .admin-card-header {
    background: linear-gradient(135deg, #8E44AD, #6c3483) !important;
}

/* Card 6 - Taarifa (Machungwa) */
.admin-card:nth-child(6) .admin-card-header {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

/* Rangi za stat boxes */
.admin-stats .stat-box:first-child {
    border-top: 4px solid #1B4D3E;
}
.admin-stats .stat-box:nth-child(2) {
    border-top: 4px solid #FCD116;
}
.admin-stats .stat-box:nth-child(3) {
    border-top: 4px solid #E81D1D;
}
.admin-stats .stat-box:nth-child(4) {
    border-top: 4px solid #00A3E0;
}
.admin-stats .stat-box:nth-child(5) {
    border-top: 4px solid #8E44AD;
}

/* Icons za stat boxes */
.admin-stats .stat-box:first-child .stat-icon { color: #1B4D3E; }
.admin-stats .stat-box:nth-child(2) .stat-icon { color: #FCD116; }
.admin-stats .stat-box:nth-child(3) .stat-icon { color: #E81D1D; }
.admin-stats .stat-box:nth-child(4) .stat-icon { color: #00A3E0; }
.admin-stats .stat-box:nth-child(5) .stat-icon { color: #8E44AD; }

/* Badge ya admin */
.admin-badge {
    background: #FCD116 !important;
    color: #1B4D3E !important;
}

/* Button admin */
.btn-admin {
    background: linear-gradient(135deg, #1B4D3E, #00A3E0) !important;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #0a3d62, #2e86c1) !important;
}

/* Admin Cards - Rangi tofauti */
.admin-card:nth-child(1) .admin-card-header { background: linear-gradient(135deg, #E81D1D, #c0392b) !important; }
.admin-card:nth-child(2) .admin-card-header { background: linear-gradient(135deg, #1B4D3E, #0a3d62) !important; }
.admin-card:nth-child(3) .admin-card-header { background: linear-gradient(135deg, #FCD116, #f39c12) !important; }
.admin-card:nth-child(3) .admin-card-header h3 { color: #1B4D3E !important; }
.admin-card:nth-child(4) .admin-card-header { background: linear-gradient(135deg, #00A3E0, #2980b9) !important; }
.admin-card:nth-child(5) .admin-card-header { background: linear-gradient(135deg, #8E44AD, #6c3483) !important; }
.admin-card:nth-child(6) .admin-card-header { background: linear-gradient(135deg, #e67e22, #d35400) !important; }

/* Stat boxes rangi */
.stat-box:nth-child(1) { border-top: 4px solid #1B4D3E; }
.stat-box:nth-child(2) { border-top: 4px solid #FCD116; }
.stat-box:nth-child(3) { border-top: 4px solid #E81D1D; }
.stat-box:nth-child(4) { border-top: 4px solid #00A3E0; }
.stat-box:nth-child(5) { border-top: 4px solid #8E44AD; }

.stat-box:nth-child(1) .stat-icon { color: #1B4D3E; }
.stat-box:nth-child(2) .stat-icon { color: #FCD116; }
.stat-box:nth-child(3) .stat-icon { color: #E81D1D; }
.stat-box:nth-child(4) .stat-icon { color: #00A3E0; }
.stat-box:nth-child(5) .stat-icon { color: #8E44AD; }

/* ============================================ */
/* ADMIN DASHBOARD CSS - RANGI ZA CARDS
/* ============================================ */

.admin-container {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f0f2f5;
    min-height: calc(100vh - 200px);
}

.admin-header {
    background: linear-gradient(135deg, #1B4D3E 0%, #0a3d62 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.admin-header h2 i {
    color: #FCD116;
    margin-right: 10px;
}

.admin-badge {
    background: #FCD116;
    color: #1B4D3E;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.admin-card-header {
    padding: 25px;
    text-align: center;
    color: white;
}

.admin-card-header i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.admin-card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.admin-card-body {
    padding: 20px;
    text-align: center;
}

.admin-card-body p {
    color: #666;
    margin-bottom: 0;
}

.admin-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #eee;
}

.btn-admin {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #1B4D3E, #00A3E0);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* RANGI ZA CARDS - KILA MOJA RANGI TOFAUTI */
.admin-card:nth-child(1) .admin-card-header {
    background: linear-gradient(135deg, #E81D1D, #c0392b) !important;
}

.admin-card:nth-child(2) .admin-card-header {
    background: linear-gradient(135deg, #1B4D3E, #0a3d62) !important;
}

.admin-card:nth-child(3) .admin-card-header {
    background: linear-gradient(135deg, #FCD116, #f39c12) !important;
}
.admin-card:nth-child(3) .admin-card-header h3 {
    color: #1B4D3E !important;
}

.admin-card:nth-child(4) .admin-card-header {
    background: linear-gradient(135deg, #00A3E0, #2980b9) !important;
}

.admin-card:nth-child(5) .admin-card-header {
    background: linear-gradient(135deg, #8E44AD, #6c3483) !important;
}

.admin-card:nth-child(6) .admin-card-header {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

/* RANGI ZA STAT BOXES */
.stat-box:nth-child(1) .stat-icon { color: #1B4D3E; }
.stat-box:nth-child(2) .stat-icon { color: #FCD116; }
.stat-box:nth-child(3) .stat-icon { color: #E81D1D; }
.stat-box:nth-child(4) .stat-icon { color: #00A3E0; }
.stat-box:nth-child(5) .stat-icon { color: #8E44AD; }

.stat-box:nth-child(1) { border-top: 4px solid #1B4D3E; }
.stat-box:nth-child(2) { border-top: 4px solid #FCD116; }
.stat-box:nth-child(3) { border-top: 4px solid #E81D1D; }
.stat-box:nth-child(4) { border-top: 4px solid #00A3E0; }
.stat-box:nth-child(5) { border-top: 4px solid #8E44AD; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .admin-header { flex-direction: column; text-align: center; }
    .admin-header h2 { text-align: center; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .admin-stats { grid-template-columns: 1fr; }
}

/* ============================================ */
/* ADMIN CARDS - RANGI ZA KILA CARD             */
/* ============================================ */

/* Card 1 - Video (Nyekundu) */
.admin-card:nth-child(1) .admin-card-header,
.admin-cards .admin-card:first-child .admin-card-header {
    background: linear-gradient(135deg, #E81D1D, #c0392b) !important;
}

/* Card 2 - Notes (Kijani) */
.admin-card:nth-child(2) .admin-card-header {
    background: linear-gradient(135deg, #1B4D3E, #0a3d62) !important;
}

/* Card 3 - Quiz (Njano) */
.admin-card:nth-child(3) .admin-card-header {
    background: linear-gradient(135deg, #FCD116, #f39c12) !important;
    color: #1B4D3E !important;
}
.admin-card:nth-child(3) .admin-card-header h3 {
    color: #1B4D3E !important;
}

/* Card 4 - Modules (Bluu) */
.admin-card:nth-child(4) .admin-card-header {
    background: linear-gradient(135deg, #00A3E0, #2980b9) !important;
}

/* Card 5 - Wanafunzi (Zambarau) */
.admin-card:nth-child(5) .admin-card-header {
    background: linear-gradient(135deg, #8E44AD, #6c3483) !important;
}

/* Card 6 - Taarifa (Machungwa) */
.admin-card:nth-child(6) .admin-card-header {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

/* ============================================ */
/* ADMIN FORMS - ADD VIDEO, NOTES, QUIZ, MODULES
/* ============================================ */

.admin-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.admin-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #1B4D3E;
    border-left: 4px solid #FCD116;
    padding-left: 15px;
}

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

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: #1B4D3E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

.admin-btn-submit {
    background: linear-gradient(135deg, #1B4D3E, #00A3E0);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.admin-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.admin-btn-back {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 15px;
    text-align: center;
}

.admin-btn-back:hover {
    background: #5a6268;
}

/* Module management table */
.modules-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.modules-table th {
    background: #1B4D3E;
    color: white;
    padding: 12px;
    text-align: left;
}

.modules-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.modules-table tr:hover {
    background: #f5f5f5;
}

.btn-edit {
    background: #FCD116;
    color: #1B4D3E;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
}

.btn-delete {
    background: #E81D1D;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Student progress table */
.student-progress {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.student-progress th {
    background: #1B4D3E;
    color: white;
    padding: 12px;
    text-align: left;
}

.student-progress td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.progress-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.progress-complete {
    background: #d4edda;
    color: #155724;
}

.progress-pending {
    background: #fff3cd;
    color: #856404;
}

.btn-view {
    background: #00A3E0;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
}
