/**
 * NEUROHEAL DESIGN SYSTEM
 * Filosofi: Sanctuary Digital - Aman, Tenang, Hangat
 */

:root {
    /* Palet Warna NeuroHeal */
    --nh-sage: #8BA888;
    --nh-sage-light: #B8CDB5;
    --nh-sage-dark: #5C7A5A;
    --nh-cream: #F7F3EC;
    --nh-cream-warm: #EFE8DB;
    --nh-terracotta: #C8846B;
    --nh-terracotta-soft: #E0A890;
    --nh-charcoal: #3A3A3A;
    --nh-slate: #6B6B6B;
    --nh-amber: #E8B86D;
    --nh-red-soft: #D97757;
    --nh-white: #FDFCF9;

    /* Typography */
    --nh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nh-font-serif: 'Georgia', 'Cambria', serif;

    /* Spacing & Radius */
    --nh-radius: 16px;
    --nh-radius-sm: 10px;
    --nh-radius-lg: 24px;
    --nh-shadow: 0 2px 8px rgba(92, 122, 90, 0.06);
    --nh-shadow-hover: 0 4px 16px rgba(92, 122, 90, 0.12);
}

* { box-sizing: border-box; }

body {
    font-family: var(--nh-font);
    background: linear-gradient(135deg, var(--nh-cream) 0%, var(--nh-cream-warm) 100%);
    color: var(--nh-charcoal);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
}

/* Container utama */
.nh-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 100px;
}

/* Header */
.nh-header {
    text-align: center;
    padding: 32px 0 24px;
    border-bottom: 1px solid rgba(139, 168, 136, 0.2);
    margin-bottom: 32px;
}

.nh-logo {
    font-family: var(--nh-font-serif);
    font-size: 1.5rem;
    color: var(--nh-sage-dark);
    letter-spacing: 0.5px;
    margin: 0 0 4px;
}

.nh-logo::before {
    content: "🌿 ";
}

.nh-subtitle {
    font-size: 0.85rem;
    color: var(--nh-slate);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Card */
.nh-card {
    background: var(--nh-white);
    border-radius: var(--nh-radius);
    padding: 24px;
    box-shadow: var(--nh-shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(139, 168, 136, 0.08);
    transition: box-shadow 0.3s ease;
}

.nh-card:hover {
    box-shadow: var(--nh-shadow-hover);
}

.nh-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--nh-sage-dark);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status Indicator (Traffic Light) */
.nh-status {
    text-align: center;
    padding: 32px 20px;
    background: var(--nh-white);
    border-radius: var(--nh-radius-lg);
    box-shadow: var(--nh-shadow);
    margin-bottom: 24px;
}

.nh-status-icon {
    font-size: 4rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.nh-status-label {
    font-family: var(--nh-font-serif);
    font-size: 1.1rem;
    color: var(--nh-charcoal);
    margin: 0;
}

/* Progress Bar */
.nh-progress-wrap {
    background: var(--nh-cream-warm);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    margin: 16px 0 8px;
}

.nh-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--nh-sage) 0%, var(--nh-sage-dark) 100%);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.nh-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--nh-slate);
}

/* Buttons */
.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--nh-radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: var(--nh-font);
}

.nh-btn-primary {
    background: var(--nh-sage);
    color: white;
}
.nh-btn-primary:hover {
    background: var(--nh-sage-dark);
    transform: translateY(-1px);
}

.nh-btn-danger {
    background: var(--nh-red-soft);
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--nh-radius);
}
.nh-btn-danger:hover {
    background: #C46545;
}

.nh-btn-ghost {
    background: transparent;
    color: var(--nh-sage-dark);
    border: 1px solid var(--nh-sage-light);
}
.nh-btn-ghost:hover {
    background: var(--nh-sage-light);
    color: white;
}

.nh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Form Elements */
.nh-input, .nh-textarea, .nh-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--nh-cream-warm);
    border-radius: var(--nh-radius-sm);
    background: var(--nh-white);
    font-family: var(--nh-font);
    font-size: 0.95rem;
    color: var(--nh-charcoal);
    transition: border-color 0.2s;
}

.nh-input:focus, .nh-textarea:focus, .nh-select:focus {
    outline: none;
    border-color: var(--nh-sage);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.15);
}

.nh-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--nh-font-serif);
    line-height: 1.7;
}

.nh-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--nh-charcoal);
    margin-bottom: 8px;
}

/* Radio Group Custom */
.nh-radio-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.nh-radio-option {
    flex: 1;
    position: relative;
}

.nh-radio-option input {
    position: absolute;
    opacity: 0;
}

.nh-radio-option label {
    display: block;
    padding: 12px;
    text-align: center;
    border: 1.5px solid var(--nh-cream-warm);
    border-radius: var(--nh-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: var(--nh-white);
}

.nh-radio-option input:checked + label {
    border-color: var(--nh-sage);
    background: var(--nh-sage-light);
    color: var(--nh-sage-dark);
    font-weight: 500;
}

/* Quote Box (Ricky - Hitam) */
.nh-quote {
    background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
    color: var(--nh-cream);
    padding: 28px;
    border-radius: var(--nh-radius);
    font-family: var(--nh-font-serif);
    font-style: italic;
    line-height: 1.7;
    position: relative;
    margin: 24px 0;
}

.nh-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--nh-sage);
    opacity: 0.4;
    font-family: Georgia, serif;
}

.nh-quote-author {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--nh-sage-light);
    letter-spacing: 0.5px;
}

/* Dialog / Modal */
dialog {
    border: none;
    border-radius: var(--nh-radius-lg);
    padding: 32px;
    max-width: 480px;
    width: calc(100% - 40px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

dialog::backdrop {
    background: rgba(58, 58, 58, 0.6);
    backdrop-filter: blur(4px);
}

/* Yellow Flag Counter */
.nh-flag-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--nh-cream-warm);
    border-radius: var(--nh-radius-sm);
    margin-bottom: 12px;
}

.nh-flag-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--nh-amber);
    font-family: var(--nh-font-serif);
}

/* Phase Card */
.nh-phase {
    padding: 16px 20px;
    border-left: 3px solid var(--nh-sage);
    background: var(--nh-cream);
    border-radius: 0 var(--nh-radius-sm) var(--nh-radius-sm) 0;
    margin-bottom: 12px;
}

.nh-phase.active {
    border-left-color: var(--nh-terracotta);
    background: rgba(200, 132, 107, 0.08);
}

.nh-phase-name {
    font-weight: 600;
    color: var(--nh-charcoal);
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.nh-phase-days {
    font-size: 0.8rem;
    color: var(--nh-slate);
}

/* Navigation Bottom */
.nh-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nh-white);
    border-top: 1px solid rgba(139, 168, 136, 0.15);
    padding: 12px 0;
    display: flex;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}

.nh-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--nh-slate);
    font-size: 0.7rem;
    padding: 6px 12px;
    border-radius: var(--nh-radius-sm);
    transition: all 0.2s;
}

.nh-nav-item:hover, .nh-nav-item.active {
    color: var(--nh-sage-dark);
    background: var(--nh-cream);
}

.nh-nav-icon {
    font-size: 1.3rem;
}

/* Alert Boxes */
.nh-alert {
    padding: 16px 20px;
    border-radius: var(--nh-radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.nh-alert-error {
    background: #FDECEA;
    color: #C46545;
    border-left: 4px solid #D97757;
}

.nh-alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #66BB6A;
}

.nh-alert-warning {
    background: #FFF8E1;
    color: #FF8F00;
    border-left: 4px solid #FFA726;
}

/* Utility */
.nh-text-center { text-align: center; }
.nh-mt-2 { margin-top: 16px; }
.nh-mt-4 { margin-top: 32px; }
.nh-mb-2 { margin-bottom: 16px; }
.nh-mb-4 { margin-bottom: 32px; }
.nh-text-sm { font-size: 0.85rem; }
.nh-text-muted { color: var(--nh-slate); }
.nh-hidden { display: none; }

/* Locked Page */
.nh-locked {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    padding: 20px;
}

.nh-locked-content {
    max-width: 600px;
    text-align: center;
    color: var(--nh-cream);
}

.nh-locked-icon {
    font-size: 5rem;
    margin-bottom: 24px;
}

.nh-locked-title {
    font-family: var(--nh-font-serif);
    font-size: 2rem;
    color: var(--nh-red-soft);
    margin: 0 0 16px;
}

.nh-locked-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.9;
}