/* ==========================================================================
   LENTERA UMKM — Main Global Stylesheet (main.css)
   Clean Modern SaaS Design System & Global Components
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #061022;
    --bg-surface: #0b1933;
    --bg-surface-alt: #0f2244;
    --bg-card: #09152b;
    --primary-blue: #0036d6;
    --primary-hover: #002db3;
    --accent-cyan: #00f6fe;
    --border-subtle: rgba(255, 255, 255, 0.14);
    --border-blue: rgba(0, 246, 254, 0.28);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.88);
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-dark: #091a3c;
    --success-green: #10b981;

    /* Typography */
    --font-serif: 'Newsreader', Georgia, serif;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset & Selection ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background-color: #005ce6;
    color: #ffffff;
}

::-moz-selection {
    background-color: #005ce6;
    color: #ffffff;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: #001242;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. TOP NAVBAR (Transparent Edge-to-Edge with Backdrop Blur)
   ========================================================================== */
.navbar-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    background-color: transparent;
    border-bottom: none !important;
    outline: none !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    transition: background-color 0.25s ease;
}

.navbar-header.is-scrolled {
    background-color: rgba(0, 18, 65, 0.88);
    border-bottom: none !important;
}

.navbar-header.is-scrolled .nav-brand-title {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(0, 15, 60, 0.45);
}

.navbar-header.is-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

.navbar-header.is-scrolled .nav-link:hover,
.navbar-header.is-scrolled .nav-link.active {
    color: #ffffff;
}

.navbar-header.is-scrolled .btn-nav-login {
    color: #ffffff;
}

.navbar-header.is-scrolled .mobile-toggle {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.navbar-container {
    width: 100%;
    height: 100%;
    padding: 0 clamp(20px, 4.5vw, 68px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Sisi Kiri: Pure Standalone Logo + Nama Brand */
.nav-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    background: transparent;
    border: none;
    padding: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 20, 80, 0.35));
}

.nav-brand-group:hover .nav-logo-img {
    transform: scale(1.08) rotate(-3deg);
}

.nav-brand-text-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 6px rgba(0, 15, 60, 0.45);
}

/* Sisi Tengah: Simple SaaS Navigation Menu */
.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #091a3c;
    text-decoration: none;
    padding: 8px 14px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    transition: color 0.18s ease, opacity 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: transparent !important;
    opacity: 1;
}

.nav-link.active {
    color: var(--primary-blue);
    font-weight: 700;
    background: transparent !important;
}

/* Sisi Kanan: Login / Register Buttons */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nav-login {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: #091a3c;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.btn-nav-login:hover {
    color: var(--primary-blue);
    background-color: rgba(0, 54, 214, 0.08);
    border-color: rgba(0, 54, 214, 0.18);
}

.btn-nav-register {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    color: #002db3;
    background-color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 45, 179, 0.22);
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 10, 45, 0.12);
}

.btn-nav-register:hover {
    background-color: #f0f7ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 10, 45, 0.2);
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: rgba(9, 26, 60, 0.08);
    border: 1px solid rgba(9, 26, 60, 0.18);
    color: #091a3c;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
}

.mobile-drawer {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: rgba(5, 15, 45, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 24px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
}

.mobile-drawer.is-open {
    display: flex;
}

@media (min-width: 1081px) {
    .mobile-drawer {
        display: none !important;
    }
    .mobile-toggle {
        display: none !important;
    }
}

.mobile-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
}

.mobile-nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.mobile-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-auth-row a {
    text-align: center;
    justify-content: center;
}

@media (max-width: 1080px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .nav-right-actions .btn-nav-login,
    .nav-right-actions .btn-nav-register {
        display: none;
    }
}

