:root {
    --primary: #b8c300;
    --primary-light: #d6e04d;
    --primary-dark: #8e9600;
    --accent-blue: #99d4dc;
    --accent-orange: #f9b84b;
    --bg-color: #f8f9f5;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1a1c18;
    --text-muted: #5e6157;
    --white: #ffffff;
    --shadow-soft: 0 8px 32px rgba(185, 196, 0, 0.1);
    --shadow-strong: 0 12px 48px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(185, 196, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(185, 196, 0, 0.08) 0%, transparent 40%);
    z-index: -1;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px; /* Space for nav */
    transition: padding-bottom 0.3s ease;
}

#app.nav-hidden {
    padding-bottom: 24px; /* Less bottom padding when nav is hidden */
}

/* Views */
.view {
    padding: 40px 32px;
    flex: 1;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.view.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

/* Onboarding Special */
.onboarding-screen {
    text-align: center;
    background: url('sbk_hero_bg_1778690346315.png') center/cover no-repeat;
    justify-content: flex-end;
    padding-bottom: 60px;
    color: var(--text-main);
    position: relative;
}

.onboarding-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
}

/* Typography */
h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; line-height: 1.1; color: var(--primary); }
h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--primary); }
p { font-size: 16px; color: var(--text-main); font-weight: 400; margin-bottom: 20px; }

/* Cards & Elements */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

/* Buttons */
.btn {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 18px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(185, 196, 0, 0.3);
    width: 100%;
}

.btn:active {
    transform: scale(0.96);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    box-shadow: none;
}

/* Inputs */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

input[type="text"], textarea {
    width: 100%;
    padding: 18px;
    background: var(--white);
    border: 2px solid #eef0eb;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(185, 196, 0, 0.1);
}

/* Home Progress */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 12px;
    background: #eef0eb;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--primary) 50%, var(--accent-orange) 100%);
    width: 0%;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Navigation */
.nav-tabs {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 440px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 12px;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #a3a798;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--primary-dark);
}

.nav-item i {
    font-size: 20px;
}

/* Unit Detail Animations */
.unit-step {
    animation: slideUp 0.5s ease-out forwards;
}

.unit-step ul {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 20px auto 0;
    padding: 0;
    max-width: 100%;
    width: fit-content;
}

.unit-step li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 17px;
    color: var(--text-main);
    font-weight: 400; /* Regular font for list items */
    line-height: 1.6;
    text-align: left;
}

.unit-step li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px; /* Centered with the first line of 17px font-size and 1.6 line-height */
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Confetti Customization */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Note Section */
.note-area {
    margin-top: 20px;
}

.note-area label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.summary-item {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child { border-bottom: none; }

.summary-title { font-weight: 700; color: var(--primary-dark); }
.summary-note { font-style: italic; color: var(--text-main); font-weight: 400; margin-top: 4px; }

/* Accordion / Collapsible Styling */
.accordion-container {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.accordion-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    color: var(--primary); /* Headings bold and green */
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: rgba(185, 196, 0, 0.03);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: var(--text-main);
    font-weight: 400; /* Content text regular and black */
    font-size: 15px;
    line-height: 1.6;
    transition: max-height 0.35s ease-out, padding 0.35s ease;
}

.accordion-item.active {
    border-color: rgba(185, 196, 0, 0.2);
    box-shadow: var(--shadow-strong);
}

.accordion-item.active .accordion-content {
    max-height: 2000px; /* High enough limit to accommodate images and text */
    padding: 4px 20px 20px;
}

.accordion-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

