/* ==========================================================================
   DESIGN SYSTEM - LOST TALENT DETECTOR
   Aesthetic: Warm Beige, Soft Cream (#F7F5F0), Pastel Cards & Modern Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #F7F5F0;
    --bg-card-pink: #FBE3E2;
    --bg-card-sand: #F9EBD7;
    --bg-card-lavender: #E2E4FC;
    --bg-card-mint: #D0F2E3;
    --bg-sidebar: #EFECE6;
    --bg-pill: #E6E2D8;
    --bg-pill-active: #1C1917;
    --text-dark: #1C1917;
    --text-muted: #78716C;
    --border-subtle: #E2DDD5;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* TOP NAVBAR (LANDING PAGE) */
.landing-navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(247, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-navbar.nav-hidden {
    transform: translateY(-100%) !important;
}

.landing-navbar-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.25rem;
    white-space: nowrap;
}

.nav-brand-text {
    white-space: nowrap;
}

.nav-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--text-dark);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #000000;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-apk-navbar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background-color: rgba(5, 150, 105, 0.08);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.84rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-apk-navbar:hover {
    background-color: #059669;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.35rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-dash-header {
    display: none;
}

.mobile-dash-drawer {
    display: none;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

/* APP WRAPPER & LAYOUT (DASHBOARD) */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main);
}

/* LEFT VERTICAL CAPSULE SIDEBAR */
.left-sidebar {
    width: 80px;
    background-color: var(--bg-sidebar);
    margin: 16px 0 16px 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    z-index: 100;
}

.sidebar-top, .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.app-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background-color: var(--text-dark);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--bg-pill-active);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* MAIN LAYOUT AREA */
.main-layout {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

/* DOMAIN URL MOCK HEADER BAR */
.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.url-bar-mock {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #EFECE6;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.url-bar-mock i {
    font-size: 0.75rem;
}

/* HERO SECTION & CATEGORY PILLS */
.main-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title-section {
    max-width: 680px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* PHONE MOCKUP CONTAINER */
.phone-mockup-frame {
    width: 320px;
    height: 620px;
    background-color: #1C1917;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    border: 4px solid #334155;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #F7F5F0;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.phone-notch {
    width: 120px;
    height: 18px;
    background-color: #1C1917;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 12px auto;
}

/* CATEGORY PILLS (HORIZONTAL FILTER) */
.category-pills-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: var(--bg-pill);
    color: var(--text-dark);
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-pill.active, .cat-pill:hover {
    background-color: var(--bg-pill-active);
    color: #FFFFFF;
}

.cat-pill-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* PASTEL CARDS GRID */
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cards-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .cards-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.pastel-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pastel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.card-pink { background-color: var(--bg-card-pink); }
.card-sand { background-color: var(--bg-card-sand); }
.card-lavender { background-color: var(--bg-card-lavender); }
.card-mint { background-color: var(--bg-card-mint); }

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background-color: #FFFFFF;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.card-meta-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* RIGHT DASHBOARD WIDGET PANEL */
.right-panel {
    width: 320px;
    background-color: var(--bg-sidebar);
    margin: 16px 16px 16px 0;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 16px;
    height: calc(100vh - 32px);
    overflow-y: auto;
}

.right-panel-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.icon-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-card-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.friends-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.activity-widget-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-val-tag {
    background-color: #FEF3C7;
    color: #92400E;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.activity-chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 90px;
    padding-top: 10px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.bar-segmented {
    width: 18px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bar-seg-pink { background-color: var(--bg-card-pink); }
.bar-seg-sand { background-color: var(--bg-card-sand); }
.bar-seg-lavender { background-color: var(--bg-card-lavender); }
.bar-seg-mint { background-color: var(--bg-card-mint); }

.bar-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.bar-col.active .bar-label {
    background-color: var(--bg-pill-active);
    color: #FFFFFF;
    padding: 2px 6px;
    border-radius: 8px;
}

/* MINI COURSES LIST */
.mini-courses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mini-course-card {
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* BUTTONS & FORMS */
.btn-primary-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--text-dark);
    color: #FFFFFF;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary-dark:hover {
    background-color: #000000;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background-color: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--text-dark);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.content-box {
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-subtle);
}

/* TABLES */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.custom-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.custom-table td {
    padding: 14px 16px;
    background-color: #FAFAF8;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.custom-table tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.custom-table tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ALERTS */
.alert-custom {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.alert-success { background-color: #D1F5E4; color: #065F46; }
.alert-danger { background-color: #FBE3E2; color: #991B1B; }
.alert-warning { background-color: #FEF3C7; color: #92400E; }

/* RESPONSIVE MEDIA QUERIES & MOBILE DESIGN */
@media (max-width: 1024px) {
    .right-panel { display: none; }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .left-sidebar { display: none; }
    .main-layout { padding: 16px 12px; }

    /* LANDING NAVBAR RESPONSIVE */
    .landing-navbar-inner {
        padding: 12px 16px;
        position: relative;
    }

    .nav-brand-text span:first-child {
        font-size: 0.95rem !important;
    }

    .nav-brand-text span:last-child {
        font-size: 0.62rem !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-menu-wrapper {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(247, 245, 240, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 20px 20px 24px;
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        gap: 16px;
        z-index: 999;
    }

    .nav-menu-wrapper.nav-menu-open {
        display: flex !important;
        animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 6px;
        align-items: stretch;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 12px 16px;
        border-radius: 12px;
        background-color: rgba(0, 0, 0, 0.03);
        font-weight: 700;
        font-size: 0.95rem;
        text-align: left;
    }

    .nav-auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin-top: 6px;
    }

    .nav-auth-buttons a, .btn-apk-navbar {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }

    /* LANDING PAGE LAYOUT & CARDS */
    main.landing-container {
        margin-top: 72px !important;
        padding: 16px 12px !important;
        gap: 24px !important;
    }

    .landing-hero-card {
        padding: 24px 16px !important;
        border-radius: 20px !important;
    }

    .hero-grid-section {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .hero-title {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        margin-bottom: 14px !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
    }

    .hero-btn-group a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
    }

    .hero-quick-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .hero-quick-grid .pastel-card {
        padding: 14px !important;
        min-height: 110px !important;
    }

    .cards-grid-2x2 {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .contact-section {
        grid-template-columns: 1fr !important;
        padding: 24px 16px !important;
        gap: 28px !important;
    }

    .contact-section h2 {
        font-size: 1.6rem !important;
    }

    .contact-form-card {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    .form-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .cta-section {
        padding: 28px 20px !important;
        border-radius: 20px !important;
    }

    .cta-section h3 {
        font-size: 1.4rem !important;
    }

    .cta-btn-group {
        flex-direction: column;
        width: 100%;
        gap: 10px !important;
    }

    .cta-btn-group a {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* DASHBOARD MOBILE APP HEADER & DRAWER */
    .mobile-dash-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: rgba(247, 245, 240, 0.98);
        border-bottom: 1px solid var(--border-subtle);
        position: sticky;
        top: 0;
        z-index: 990;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-dash-drawer {
        display: none;
        position: fixed;
        top: 59px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .mobile-dash-drawer.open {
        display: block;
    }

    .mobile-drawer-inner {
        background: var(--bg-main);
        padding: 20px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        animation: slideDownNav 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .dash-mobile-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 14px;
        background: #FFFFFF;
        color: var(--text-dark);
        text-decoration: none;
        font-weight: 700;
        font-size: 0.95rem;
        border: 1px solid var(--border-subtle);
        transition: all 0.2s;
    }

    .dash-mobile-link.active {
        background: var(--bg-pill-active);
        color: #FFFFFF;
        border-color: var(--bg-pill-active);
    }

    /* TABLE RESPONSIVE WRAPPER */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .hero-quick-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
}

@keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PASSWORD VISIBILITY TOGGLE */
.password-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-toggle-wrapper .form-control {
    padding-right: 42px;
    width: 100%;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 5;
}

.password-toggle-btn:hover {
    color: var(--text-dark);
}

