:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-strong: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --brand: #16a34a;
    --brand-dark: #0f766e;
    --brand-soft: #d9f99d;
    --brand-light: #ecfdf5;
    --accent: #a3e635;
    --border: rgba(148, 163, 184, 0.18);
    --shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button, input, textarea, select {
    font: inherit;
}

/* Rich Text Editor Styling */
#editor {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#editor ul,
#editor ol {
    margin: 12px 0;
    padding-left: 32px;
    list-style: revert;
}

#editor li {
    margin: 6px 0;
    list-style: revert;
}

#editor ul li {
    list-style-type: disc;
}

#editor ol li {
    list-style-type: decimal;
}

#preview-body ul,
#preview-body ol {
    margin: 12px 0;
    padding-left: 32px;
    list-style: revert;
}

#preview-body li {
    margin: 6px 0;
    list-style: revert;
}

#preview-body ul li {
    list-style-type: disc;
}

#preview-body ol li {
    list-style-type: decimal;
}

::selection {
    background: rgba(22, 163, 74, 0.18);
    color: var(--text);
}

.glass-header {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.glass-header .container {
    align-items: center;
}

#mobile-menu {
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.08);
}

.card-hover {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.08);
}

.bg-gradient-soft {
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
}

.bg-brand-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
}

.text-brand-primary {
    color: var(--brand) !important;
}

.text-brand-dark {
    color: var(--brand-dark) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

.bg-brand-dark {
    background-color: var(--brand-dark) !important;
}

.border-brand-primary {
    border-color: rgba(22, 163, 74, 0.22) !important;
}

.shadow-soft {
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08) !important;
}

.shadow-float {
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1) !important;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(22, 163, 74, 0.22);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 1.7rem;
    border-radius: 999px;
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: transparent;
    color: var(--brand);
}

.hero-full {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-full::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 85%, rgba(163, 230, 53, 0.14), transparent 18%),
                      radial-gradient(circle at 80% 20%, rgba(22, 163, 74, 0.12), transparent 22%),
                      linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.05));
    pointer-events: none;
}

.hero-full .container {
    position: relative;
    z-index: 10;
}

.hero-full h2,
.hero-full h1 {
    line-height: 1.04;
}

.section-heading {
    max-width: 52rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
    margin: 0;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1rem;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
    gap: 1.25rem;
}

.stats-panel .panel-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.07);
}

.panel-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.panel-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

input[type='text'],
input[type='email'],
input[type='password'],
input[type='file'],
textarea,
select {
    transition: all 0.25s ease;
    border-radius: 18px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    letter-spacing: 0.02em;
}

tbody tr:hover {
    background: rgba(22, 163, 74, 0.04);
}

td, th {
    transition: background 0.25s ease;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pill--green {
    background: rgba(22, 163, 74, 0.12);
    color: var(--brand-dark);
}

.status-pill--soft {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.hero-overlay-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 2rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

footer {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #86efac;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #16a34a;
}
