/* =============================================
   BelajarSmart — Shared Design System
   ============================================= */

:root {
    --bg-body: #F0F4F8;
    --sidebar-bg: #FFFFFF;
    --primary: #4361EE;
    --primary-light: #E0E7FF;
    --secondary: #F72585;
    --accent: #FCA311;
    --success: #10B981;
    --danger: #EF4444;
    --text-main: #2B2D42;
    --text-muted: #8D99AE;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.05);
    --border-radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
}

body.layout-app {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

a { text-decoration: none; color: inherit; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: 280px;
    min-width: 280px;
    background-color: var(--sidebar-bg);
    height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 50px;
    padding-left: 10px;
}

.logo-area i { color: var(--accent); font-size: 1.8rem; }

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 15px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item a:hover,
.nav-item.active a {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-item i { font-size: 1.2rem; width: 25px; text-align: center; }

/* =============================================
   MAIN WRAPPER & TOPBAR
   ============================================= */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.topbar {
    height: 80px;
    background: transparent;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    margin-top: 10px;
}

.user-info { display: flex; align-items: center; gap: 25px; }

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 15px 8px 8px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    font-weight: 600;
}

.profile-btn img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    object-fit: cover;
}

.profile-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 160px;
    z-index: 100;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: #F8FAFC;
    color: var(--danger);
}

/* =============================================
   CONTENT AREA
   ============================================= */
.content { padding: 20px 40px 40px; }

.content-centered {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* =============================================
   CARD
   ============================================= */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.card-bordered {
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    padding: 10px;
    border-radius: 12px;
    font-size: 1.1rem;
}

/* =============================================
   PAGE HEADER BANNER
   ============================================= */
.page-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: var(--border-radius);
    padding: 35px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 8px solid var(--primary);
}

.page-header.accent-border { border-left-color: var(--accent); }

.header-text h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.header-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    line-height: 1.6;
    font-weight: 600;
}

.header-icon { font-size: 5rem; opacity: 0.8; margin-right: 20px; }

/* =============================================
   WELCOME BANNER
   ============================================= */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #7B2CBF 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.welcome-text h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.welcome-text p { font-size: 1.1rem; opacity: 0.9; }

.banner-illustration {
    font-size: 5rem;
    position: absolute;
    right: 50px;
    bottom: -10px;
    opacity: 0.8;
    transform: rotate(-10deg);
}

/* =============================================
   DASHBOARD GRID
   ============================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 30px;
}

.right-column { display: flex; flex-direction: column; gap: 30px; }

.grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

/* =============================================
   GOALS (TUJUAN BELAJAR)
   ============================================= */
.goal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    background: #F8FAFC;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.goal-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.goal-item.completed { background: #ECFDF5; border-color: #A7F3D0; }

.goal-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    flex-grow: 1;
    transition: all 0.3s ease;
}

.goal-item.completed .goal-text {
    color: var(--success);
    text-decoration: line-through;
    opacity: 0.7;
}

.checkbox-custom {
    width: 28px;
    height: 28px;
    border: 3px solid #CBD5E1;
    border-radius: 8px;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.goal-item.completed .checkbox-custom {
    background-color: var(--success);
    border-color: var(--success);
}

.goal-item.completed .checkbox-custom::after {
    content: '\f00c';
    font-family: 'FontAwesome';
    color: white;
    font-size: 14px;
}

/* =============================================
   SUGGESTION CHIPS
   ============================================= */
.suggestion-chip,
.chip {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Nunito', sans-serif;
}

.suggestion-chip:hover,
.chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* =============================================
   ADD GOAL INPUT
   ============================================= */
.add-goal-wrapper { display: flex; gap: 15px; }

.add-goal-input-box {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border: 2px dashed #CBD5E1;
    border-radius: 15px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.add-goal-input-box:focus-within { border-color: var(--primary); background: #fff; }
.add-goal-input-box i { color: var(--text-muted); margin-right: 15px; }

.add-goal-input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1.05rem;
    font-family: 'Nunito', sans-serif;
    outline: none;
    color: var(--text-main);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add:hover {
    background: #344ceb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* =============================================
   DURATION INPUT
   ============================================= */
.duration-input {
    width: 100px;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    border: 2px solid #CBD5E1;
    border-radius: 15px;
    padding: 10px;
    outline: none;
    color: var(--primary);
    transition: 0.3s;
    font-family: 'Nunito', sans-serif;
}

.duration-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* =============================================
   SWITCH / TOGGLE
   ============================================= */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(22px); }

/* =============================================
   TIME INPUT
   ============================================= */
.time-input,
.time-select {
    padding: 12px 15px;
    border: 2px solid #CBD5E1;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
    background: #F8FAFC;
}

.time-input:focus,
.time-select:focus { border-color: var(--primary); background: #fff; }

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 6px solid var(--primary);
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show { transform: translateX(0); }

.toast-icon {
    background: var(--primary-light);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-content { flex-grow: 1; min-width: 200px; }
.toast-title { font-weight: 800; color: var(--text-main); font-size: 1.1rem; margin-bottom: 3px; }
.toast-desc { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

.toast-close {
    background: none;
    border: none;
    color: #CBD5E1;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: 0.3s;
}

.toast-close:hover { color: var(--secondary); }

/* =============================================
   BEHAVIOR (PERILAKU) PAGE
   ============================================= */
.behavior-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.behavior-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.behavior-item:hover { border-color: var(--primary-light); background: #fff; }
.behavior-item.selected { border-color: var(--success); background: #ECFDF5; }

.radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: 0.2s;
    flex-shrink: 0;
}

.behavior-item.selected .radio-custom { border-color: var(--success); }

.behavior-item.selected .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
}

.behavior-text { font-size: 1.05rem; font-weight: 600; flex-grow: 1; }

.add-custom-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
}

.add-custom-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #F8FAFC;
}

.custom-input-group { display: none; margin-top: 15px; }
.custom-input-group.active { display: flex; gap: 10px; }

/* =============================================
   OBSTACLE ROWS
   ============================================= */
.obstacle-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
    background: #F8FAFC;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.obstacle-select,
.solution-select {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    background: white;
}

.solution-select { border-color: var(--primary-light); color: var(--primary); }

.btn-remove-obstacle {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.btn-remove-obstacle:hover { opacity: 1; transform: scale(1.1); }

/* =============================================
   FORM ELEMENTS (PERUBAHAN & EVALUASI)
   ============================================= */
.form-group { margin-bottom: 25px; }

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.form-section {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.custom-input {
    width: 100%;
    background: #ffffff;
    border: 2px solid #CBD5E1;
    border-radius: 12px;
    padding: 15px 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    resize: none;
}

.custom-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-with-icon {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #CBD5E1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.input-with-icon:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-icon-wrapper {
    padding: 0 15px;
    background: #F8FAFC;
    border-right: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 1.2rem;
}

.input-with-icon input {
    border: none;
    width: 100%;
    padding: 15px 20px;
    outline: none;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.floating-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6rem;
    opacity: 0.1;
    pointer-events: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #344ceb;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px 40px;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-accent:hover {
    background: #e08f09;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252, 163, 17, 0.4);
}

.btn-add-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    padding: 5px 0;
}

.btn-add-text:hover { color: var(--primary); }

.bottom-action {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    border-top: 2px dashed #E2E8F0;
    padding-top: 25px;
}

/* =============================================
   CHART
   ============================================= */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.filter-select {
    padding: 8px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    background-color: #F8FAFC;
    transition: 0.3s;
}

.filter-select:focus { border-color: var(--primary); }

/* =============================================
   LOG LIST (PEMANTAUAN)
   ============================================= */
.log-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.log-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #F8FAFC;
    border-radius: 15px;
    border: 1px solid #E2E8F0;
    transition: 0.3s;
}

.log-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.log-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.log-icon.task { background: #E0E7FF; color: var(--primary); }
.log-icon.sosmed { background: #FEE2E2; color: #EF4444; }
.log-icon.game { background: #DCFCE7; color: #10B981; }
.log-icon.read { background: #E0F2FE; color: #0284C7; }

.log-content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.log-desc { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }

.log-time {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 12px;
    border-radius: 8px;
}

.log-time.danger { color: #EF4444; background: #FEE2E2; }

/* =============================================
   TEXTAREA
   ============================================= */
.custom-textarea {
    width: 100%;
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 15px;
    padding: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.custom-textarea:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* =============================================
   LOCATION SELECT
   ============================================= */
.location-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    transition: 0.3s;
    background: #F8FAFC;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D99AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.location-select:focus { border-color: var(--primary); background-color: #fff; }

/* =============================================
   AUTH PAGES (LOGIN / REGISTER)
   ============================================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-logo h1 i { color: var(--accent); }
.auth-logo p { color: var(--text-muted); font-weight: 600; margin-top: 8px; }

.auth-form .form-group { margin-bottom: 20px; }

.auth-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: 0.3s;
    color: var(--text-main);
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.auth-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-muted);
    font-weight: 600;
}

.auth-footer a { color: var(--primary); font-weight: 800; }
.auth-footer a:hover { text-decoration: underline; }

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.alert-error { background: #FEE2E2; color: #DC2626; }
.alert-success { background: #DCFCE7; color: #16A34A; }

/* =============================================
   LANDING PAGE
   ============================================= */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.landing-nav .logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-nav .logo i { color: var(--accent); }

.landing-nav .nav-actions { display: flex; gap: 15px; align-items: center; }

.btn-outline {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    background: transparent;
    font-size: 1rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-solid {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-solid:hover {
    background: #344ceb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 80px;
    background: linear-gradient(180deg, #F0F4F8 0%, #E0E7FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-section h1 .highlight {
    background: linear-gradient(135deg, var(--primary), #7B2CBF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 600;
}

.hero-section .btn-primary { font-size: 1.2rem; padding: 18px 50px; }

.features-section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.6;
}

/* =============================================
   UTILITIES
   ============================================= */
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 25px !important; }
.mt-4 { margin-top: 25px !important; }
.w-100 { width: 100% !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.clearfix::after { content: ""; clear: both; display: table; }

.step-number {
    background: var(--success);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.time-separator { font-weight: 800; color: var(--text-muted); }

.btn-save-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

/* =============================================
   MOBILE RESPONSIVENESS (<= 768px)
   ============================================= */
@media (max-width: 768px) {
    body.layout-app {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        min-width: unset;
        height: auto;
        padding: 5px 10px;
        flex-direction: row;
        border-top: 1px solid #E2E8F0;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
        position: fixed;
        bottom: 0;
        left: 0;
        background: #fff;
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
    }

    .logo-area {
        display: none !important;
    }

    .nav-menu {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .nav-item { flex: 1; }

    .nav-item a {
        flex-direction: column;
        padding: 5px;
        gap: 3px;
        font-size: 0.65rem;
        border-radius: 10px;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        height: 100%;
        font-weight: 700;
        color: var(--text-muted);
    }

    .nav-item.active a { background-color: transparent; color: var(--primary); }
    .nav-item.active a i { background-color: var(--primary-light); padding: 4px; border-radius: 12px; width: 40px; height: 32px; margin-bottom: 2px; }

    .nav-item i {
        font-size: 1.2rem;
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-wrapper {
        margin-bottom: 75px; 
    }

    .topbar {
        padding: 0 20px;
        justify-content: space-between;
        align-items: center;
    }

    .topbar::before {
        content: '\f135';
        font-family: 'FontAwesome';
        font-weight: 900;
        color: var(--primary);
        font-size: 1.8rem;
        display: block;
    }

    .content { padding: 10px 20px 30px; }

    .dashboard-grid, .grid-half, .grid-layout, .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header {
        padding: 25px 20px;
        flex-direction: column-reverse;
        text-align: center;
        align-items: center;
    }

    .header-icon {
        margin-right: 0;
        margin-bottom: 15px;
        font-size: 3.5rem;
    }

    .header-text h1 { font-size: 1.6rem; }
    .header-text p { font-size: 0.95rem; }

    .welcome-banner { flex-direction: column; padding: 25px 20px; text-align: center; }
    .banner-illustration { display: none; }

    .card { padding: 20px; }

    .log-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    .log-desc { max-width: 100% !important; }
    .auth-card { padding: 30px 20px; }
    
    /* Landing page specific */
    .landing-nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    .landing-nav .nav-actions {
        width: 100%;
        justify-content: center;
    }
    .hero-section { padding: 140px 20px 60px; }
    .hero-section h1 { font-size: 2rem; }
    .features-section { padding: 60px 20px; }
}
