/* ============================================ */
/* MKULIMA PLATFORM - STYLE.CSS (IMEREKEBISHWA) */
/* ============================================ */

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

* {
    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);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.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 - RAHISI (NYEUSI / NYEUPE) */
/* ============================================ */

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1015; /* Imepandishwa juu ya kila kitu */
    padding: 8px 10px;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s ease;
    border: none;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: #1B4D3E;
    border-radius: 3px;
    transition: all 0.3s;
    display: block;
}

.hamburger:hover .bar {
    background: #FCD116;
}

/* Hamburger Active State - Vistari vinageuka kuwa X */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #E81D1D;
}

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

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

/* ============================================ */
/* CONTAINER */
/* ============================================ */

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

/* ============================================ */
/* HERO SLIDER */
/* ============================================ */

.hero-section {
    height: 85vh;
    overflow: hidden;
    position: relative;
}

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

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

.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;
}

.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: #1B4D3E;
    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;
    display: flex;
    flex-direction: column;
}

.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;
}

/* ============================================ */
/* MODULES SECTION */
/* ============================================ */

.modules-section {
    padding: 70px 0;
    background: #f0f4f8;
}

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

.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);
}

/* ============================================ */
/* 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,
.auth-form .form-group select,
.auth-form .form-group textarea {
    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,
.auth-form .form-group select:focus,
.auth-form .form-group textarea: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);
}

.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);
}

.btn-success {
    background: var(--success);
}

.btn-danger {
    background: var(--danger);
}

.btn-warning {
    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);
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--tanzania-yellow);
}

/* ============================================ */
/* PASSWORD INPUT WITH EYE */
/* ============================================ */

.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);
}

/* ============================================ */
/* FOOTER - TANZANIA FLAG COLORS */
/* ============================================ */

.footer {
    background: linear-gradient(135deg, 
        #1EB53A 0%, 
        #1EB53A 20%,
        #FCD116 20%,
        #FCD116 40%,
        #000000 40%,
        #000000 60%,
        #00A3E0 60%,
        #00A3E0 80%,
        #1EB53A 80%,
        #1EB53A 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;
    flex-wrap: wrap;
}

.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;
}

/* ============================================ */
/* ADMIN DASHBOARD STYLES */
/* ============================================ */

.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;
    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-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 {
    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-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

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

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 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;
    border: none;
    cursor: pointer;
}

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

/* Admin Card Colors */
.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(3) .admin-card-header h3 { color: #1B4D3E; }
.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-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;
}

/* ============================================ */
/* DASHBOARD WELCOME */
/* ============================================ */

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

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

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

/* ============================================ */
/* RESPONSIVE - HAPA NDIO HAMBURGER INAFANYA KAZI */
/* ============================================ */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1015; /* Inahakikisha kisu kipo juu ya kila kitu kila wakati */
    }

    /* Menu inapofunguka - BACKGROUND YA BENDERA */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(180deg, 
            #1EB53A 0%, 
            #1EB53A 20%,
            #FCD116 20%,
            #FCD116 40%,
            #000000 40%,
            #000000 60%,
            #00A3E0 60%,
            #00A3E0 80%,
            #1EB53A 80%,
            #1EB53A 100%
        );
        background-size: 100% 200%;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Inapanga kuanzia juu isiende katikati */
        padding: 100px 20px 40px;    /* Nafasi ya kushuka chini ya nembo/hamburger */
        gap: 15px;
        transition: left 0.4s ease-in-out;
        box-shadow: 5px 0 30px rgba(0,0,0,0.4);
        z-index: 1010;               /* Kubwa kuliko slider (z-index 2-10) ili isifunikwe */
        overflow-y: auto;
        border-right: 3px solid rgba(255,255,255,0.3);
    }

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

    /* SULUHISHO: Overlay giza sasa inaitwa kupitia body `.menu-open` */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1005; /* Inaziba slider lakini ipo nyuma ya nav-menu */
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 14px 25px;
        border-radius: 30px;
        color: white;
        font-weight: 500;
        transition: all 0.3s;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255,255,255,0.15);
        width: 100%;
        display: block;
    }

    .nav-menu li a:hover {
        background: #FCD116;
        color: #1B4D3E;
        transform: translateX(5px);
        border-color: #FCD116;
    }

    .nav-menu li a.active {
        background: #FCD116;
        color: #1B4D3E;
    }

    .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;
    }

    .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;
        font-size: 0.9rem;
    }
}

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

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

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

    .hamburger {
        padding: 5px 7px;
    }

    .hamburger .bar {
        width: 22px;
        height: 2.5px;
    }

    .nav-menu {
        width: 85%;
        max-width: 280px;
        padding: 90px 15px 30px;
    }

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

    .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;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-header h2 {
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.block { display: block; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.w-100 { width: 100%; }
.w-50 { width: 50%; }

.rounded { border-radius: 10px; }
.rounded-lg { border-radius: 20px; }
.rounded-full { border-radius: 50%; }

.shadow { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.bg-white { background: white; }
.bg-light { background: #f8f9fa; }
.bg-primary { background: #1B4D3E; }
.bg-accent { background: #FCD116; }
