/* ===============================
   CSS Variables — Natgaya
================================= */

:root {
    --ng-primary:       #1e3d1e;
    --ng-primary-light: #2d5a2d;
    --ng-accent:        #4caf50;
    --ng-accent-hover:  #388e3c;
    --ng-text:          #1f2937;
    --ng-text-muted:    #64748b;
    --ng-bg:            #f4f8f4;
    --ng-surface:       #ffffff;
    --ng-border:        #e0eeda;
    --ng-shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ng-shadow-md:     0 4px 16px rgba(30,61,30,0.08), 0 1px 4px rgba(0,0,0,0.04);
    --ng-radius:        10px;
    --ng-radius-lg:     16px;
    --ng-sidebar-width: 240px;
    --ng-topbar-height: 60px;
}

/* ===============================
   Base
================================= */

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--ng-bg);
    color: var(--ng-text);
    margin: 0;
}

html, body { overflow-x: hidden; }

.btn { border-radius: 8px; }

.card {
    border-radius: var(--ng-radius-lg);
    border: 1px solid var(--ng-border);
    box-shadow: var(--ng-shadow-sm);
}

/* ===============================
   Landing — Navbar
================================= */

.ng-navbar {
    background: var(--ng-surface);
    border-bottom: 2px solid var(--ng-accent);
    padding: 0.875rem 0;
}

.ng-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--ng-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.ng-navbar .navbar-brand:hover { color: var(--ng-primary-light); }

.ng-navbar .nav-link {
    color: var(--ng-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.ng-navbar .nav-link:hover { color: var(--ng-accent-hover); }

.ng-navbar .navbar-toggler {
    border: 1px solid var(--ng-primary);
    border-radius: 6px;
    padding: 6px;
}

/* ===============================
   Landing — Hero
================================= */

.ng-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    min-height: 52vh;
    background: url('/images/home-banner.png') no-repeat center center;
    background-size: cover;
    overflow: hidden;
}

.ng-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 0;
}

.ng-hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1rem 3.5rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ===============================
   Landing — Refresh City Section
================================= */

.ng-refresh-section {
    background: var(--ng-surface);
    padding: 4rem 0;
}

.ng-refresh-section .ng-section-eyebrow {
    font-size: 1rem;
    color: var(--ng-accent-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.ng-refresh-section .ng-slogan {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ng-text);
    margin-bottom: 0.5rem;
}

.ng-refresh-section .ng-slogan .text-success { color: var(--ng-accent) !important; }

.ng-action-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem;
    display: inline-block;
    text-align: left;
}

.ng-action-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--ng-text);
}

.ng-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.ng-hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .ng-hero h1 { font-size: 1.875rem; }
    .ng-hero .lead { font-size: 1rem; }
}

/* ===============================
   Icon circle (standalone utility)
================================= */

.ng-icon-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

/* ===============================
   Landing — Value Cards
================================= */

.ng-value-card {
    background: var(--ng-surface);
    border: 1px solid var(--ng-border);
    border-radius: var(--ng-radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--ng-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.ng-value-card:hover {
    box-shadow: var(--ng-shadow-md);
    transform: translateY(-2px);
}

.ng-value-card .ng-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin: 0 auto 1.25rem;
}

/* ===============================
   Landing — Role Cards
================================= */

.ng-role-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--ng-border);
    border-radius: var(--ng-radius-lg);
    padding: 1.75rem;
    text-align: center;
    height: 100%;
    background: var(--ng-surface);
    transition: all 0.25s ease;
    box-shadow: var(--ng-shadow-sm);
}

.ng-role-card:hover {
    transform: translateY(-3px);
    background: #f0faf0;
    border-color: var(--ng-accent);
    box-shadow: 0 8px 24px rgba(76,175,80,0.15);
    color: inherit;
}

.ng-role-card .ng-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 auto 1rem;
}

/* ===============================
   Landing — Steps
================================= */

.ng-step-number {
    width: 48px;
    height: 48px;
    background: var(--ng-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
}

/* ===============================
   Landing — CTA Section
================================= */

.ng-cta-section {
    background: var(--ng-primary);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.ng-cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ng-cta-section p { opacity: 0.85; margin-bottom: 2rem; }

/* ===============================
   Landing — Footer
================================= */

.ng-footer {
    background: var(--ng-primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.75rem 0;
}

.ng-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.ng-footer a:hover { color: #fff; }

.ng-footer .ng-footer-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.ng-footer .ng-footer-copy {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
}

/* ===============================
   App Layout — Sidebar
================================= */

.ng-sidebar {
    width: var(--ng-sidebar-width);
    min-height: 100vh;
    background: var(--ng-primary);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.ng-sidebar-brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
    letter-spacing: -0.01em;
}

.ng-sidebar-brand:hover { color: #fff; }

.ng-sidebar-nav { padding: 0.75rem 0; }

.ng-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.ng-sidebar-nav a:hover,
.ng-sidebar-nav a.active {
    background: rgba(76,175,80,0.18);
    color: #fff;
}

.ng-sidebar-nav .ng-nav-icon { width: 18px; text-align: center; flex-shrink: 0; }

.ng-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

/* ===============================
   App Layout — Content Area
================================= */

.ng-content {
    margin-left: var(--ng-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ng-topbar {
    height: var(--ng-topbar-height);
    background: var(--ng-surface);
    border-bottom: 1px solid var(--ng-border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ng-topbar-title {
    font-weight: 600;
    font-size: 0.95rem;
    flex-grow: 1;
    color: var(--ng-text);
}

.ng-main { padding: 2rem; flex-grow: 1; }

@media (max-width: 991px) {
    .ng-sidebar { display: none !important; }
    .ng-content { margin-left: 0; }
}

/* ===============================
   User Avatar
================================= */

.ng-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ng-accent), var(--ng-primary-light));
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    flex-shrink: 0;
}

/* ===============================
   Flash / TempData alerts
================================= */

.ng-flash {
    border-radius: var(--ng-radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.ng-flash-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.ng-flash-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ===============================
   Stepper (multi-step wizard)
================================= */

.ng-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2rem;
    counter-reset: step;
}

.ng-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.ng-stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--ng-border);
    z-index: 0;
    transition: background 0.3s;
}

.ng-stepper-item.completed:not(:last-child)::after {
    background: var(--ng-accent);
}

.ng-stepper-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    border: 2px solid var(--ng-border);
    background: var(--ng-surface);
    color: var(--ng-text-muted);
    position: relative;
    z-index: 1;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ng-stepper-item.active .ng-stepper-bubble {
    border-color: var(--ng-primary);
    background: var(--ng-primary);
    color: #fff;
}

.ng-stepper-item.completed .ng-stepper-bubble {
    border-color: var(--ng-accent);
    background: var(--ng-accent);
    color: #fff;
}

.ng-stepper-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--ng-text-muted);
    margin-top: 0.375rem;
    text-align: center;
    white-space: nowrap;
}

.ng-stepper-item.active .ng-stepper-label { color: var(--ng-primary); font-weight: 600; }
.ng-stepper-item.completed .ng-stepper-label { color: var(--ng-accent); }

/* Step panels */
.ng-step-panel { display: none; }
.ng-step-panel.active { display: block; }

/* Section headings inside steps */
.ng-form-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ng-text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ng-border);
}

/* Summary recap */
.ng-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.ng-summary-item {
    background: var(--ng-bg);
    border: 1px solid var(--ng-border);
    border-radius: var(--ng-radius);
    padding: 0.75rem 1rem;
}

.ng-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ng-text-muted);
    margin-bottom: 0.25rem;
}

.ng-summary-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ng-text);
}

/* ===============================
   Pill checkboxes
================================= */

.ng-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ng-check-pill {
    position: relative;
    display: inline-block;
}

.ng-check-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ng-check-pill label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1.5px solid var(--ng-border);
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--ng-text-muted);
    background: var(--ng-surface);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.ng-check-pill input[type="checkbox"]:checked + label {
    border-color: var(--ng-accent);
    background: #f0faf0;
    color: var(--ng-primary);
}

.ng-check-pill label:hover {
    border-color: var(--ng-accent);
    color: var(--ng-primary);
}

/* ===============================
   Buttons
================================= */

.btn-ng-primary {
    background-color: var(--ng-accent);
    border-color: var(--ng-accent);
    color: #fff;
    font-weight: 600;
}

.btn-ng-primary:hover {
    background-color: var(--ng-accent-hover);
    border-color: var(--ng-accent-hover);
    color: #fff;
}

.btn-ng-outline {
    border: 1px solid var(--ng-accent);
    color: var(--ng-accent);
    font-weight: 600;
    background: transparent;
}

.btn-ng-outline:hover {
    background: var(--ng-accent);
    color: #fff;
}
