/* ================================================================= */
/* MUKUNI LMS PERMANENT MASTER STYLESHEET                            */
/* ================================================================= */

:root {
    --bg-primary: #0b1329;
    --bg-card: rgba(17, 29, 53, 0.95);
    --bg-card-hover: rgba(28, 45, 80, 0.95);
    --border-color: rgba(56, 189, 248, 0.2);
    --border-hover: rgba(245, 158, 11, 0.4);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-yellow: #f59e0b;
    --accent-yellow-light: #fcd34d;
    --accent-blue: #38bdf8;
    --accent-green: #4ade80;
    --accent-red: #ef4444;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Universal Navbar & Header --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-badge {
    background: var(--accent-yellow);
    color: #0b1329;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.logo-subtitle {
    font-size: 0.62rem;
    display: block;
    color: var(--accent-blue);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

/* --- Dropdown Menu (Landing Page / Mobile) --- */
.menu-container {
    position: relative;
}

.menu-toggle {
    background: #131f35;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.2s;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 48px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    width: 190px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    display: none;
    z-index: 1000;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.65rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: #1e293b;
    color: var(--accent-yellow);
}

/* --- Landing Page Hero & Slideshow --- */
.main-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
    box-sizing: border-box;
}

.bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 0.3;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 19, 41, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    text-align: center;
}

.badge {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.05em;
}

/* --- Dashboard Containers & Cards --- */
.dash-container {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
    width: 100%;
    flex: 1;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
}

.dash-card.highlight-panel {
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.section-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Dashboard Grid Tiles --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.dashboard-tile {
    background: #131f35;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.15rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.dashboard-tile:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.dashboard-tile.active-highlight {
    border-color: rgba(56, 189, 248, 0.5);
}

.tile-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tile-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--accent-yellow-light);
}

.tile-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin: 0;
}

/* --- Authentication Cards & Forms --- */
.auth-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.auth-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.back-link {
    color: var(--accent-blue);
    font-size: 0.82rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group select {
    width: 100%;
    background: #131f35;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

.btn-submit {
    width: 100%;
    background: var(--accent-yellow);
    color: #0b1329;
    border: none;
    border-radius: 0.6rem;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #d97706;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--accent-red);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.auth-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

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

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* --- Buttons & Badges --- */
.btn-signup, .btn-login-yellow, .btn-tile-action {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: background 0.2s;
}

.btn-signup {
    background: #2563eb;
    color: #fff;
}

.btn-signup:hover {
    background: #1d4ed8;
}

.btn-login-yellow, .btn-tile-action {
    background: var(--accent-yellow);
    color: #0b1329;
}

.btn-login-yellow:hover, .btn-tile-action:hover {
    background: #d97706;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-blue {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

/* --- Universal Footer --- */
footer {
    margin-top: auto;
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #0f172a;
    border-top: 1px solid var(--border-color);
}

/* Desktop Media Queries */
@media (min-width: 640px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
