/* ==========================================================================
   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;
}

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

.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: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #000000;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 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 */
@media (max-width: 1024px) {
    .right-panel { display: none; }
}

@media (max-width: 768px) {
    .left-sidebar { display: none; }
    .main-layout { padding: 16px; }
    .hero-title { font-size: 1.8rem; }
    .landing-navbar { flex-direction: column; gap: 16px; }
}

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

