:root {
    /* PRIMARY COLOR SCHEME - White & Blue */
    --primary-green: #2563eb;
    /* Main blue */
    --primary-dark: #1d4ed8;
    /* Dark blue accent */
    --primary-light: #dbeafe;
    /* Light blue tint */
    --primary-lighter: #eff6ff;
    /* Very light blue */

    /* NEUTRAL COLORS */
    --white: #ffffff;
    --near-white: #f9fafb;
    --light-gray: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --dark-gray: #1f2937;
    --near-black: #111827;

    /* SEMANTIC COLORS (for status/alerts - max 2 colors) */
    --success: #2563eb;
    /* Blue = Success */
    --warning: #f59e0b;
    /* Amber = Warning */
    --danger: #ef4444;
    /* Red = Error/Danger */
    --info: #2563eb;
    /* Blue = Info */

    /* SHADOW & BORDERS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --border-color: #e5e7eb;

    /* TYPOGRAPHY */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Monaco', 'Courier New', monospace;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* GLOBAL SPACING & UTILITIES */
.container-lg {
    max-width: 1200px;
    margin: 0 auto;
}

.py-0 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.py-1 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-2 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.py-3 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.px-1 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-2 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.px-3 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-4 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.m-auto {
    margin: auto !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.text-dark {
    color: var(--dark-gray) !important;
}

.text-gray {
    color: var(--gray-500) !important;
}

.text-green {
    color: var(--primary-green) !important;
}

.bg-white {
    background: var(--white) !important;
}

.bg-light {
    background: var(--light-gray) !important;
}

.bg-lighter {
    background: var(--primary-lighter) !important;
}

.bg-green {
    background: var(--primary-green) !important;
    color: var(--white) !important;
}

.bg-dark {
    background: var(--dark-gray) !important;
    color: var(--white) !important;
}

/* BUTTONS - Green Primary Theme */
.btn,
button {
    font-family: var(--font-primary);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary,
.btn-success {
    background: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
    padding: 10px 20px;
}

.btn-primary:hover,
.btn-success:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active,
.btn-success:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-outline,
.btn-outline-primary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover,
.btn-outline-primary:hover {
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.btn-secondary,
.btn-light {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 2px solid transparent;
    padding: 10px 20px;
}

.btn-secondary:hover,
.btn-light:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-green);
    border: none;
    padding: 0;
}

.btn-ghost:hover {
    color: var(--primary-dark);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* FORM ELEMENTS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--dark-gray);
    background: var(--white);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary-green);
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark-gray);
}

/* BADGES & TAGS */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-success,
.badge-primary {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.badge-light {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.badge-dark {
    background: var(--near-black);
    color: var(--white);
}

/* CARDS */
.card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 2px solid var(--gray-200);
    background: var(--light-gray);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 2px solid var(--gray-200);
    background: var(--light-gray);
}

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--primary-green);
    color: var(--primary-dark);
}

.alert-danger,
.alert-error {
    background: linear-gradient(135deg, #fee2e2, #f0f0f0);
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: var(--primary-green);
    color: var(--primary-dark);
}

/* HEADERS & TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-gray);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

small {
    font-size: 0.875rem;
    color: var(--gray-500);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* SEPARATOR */
hr {
    border: none;
    border-top: 2px solid var(--gray-200);
    margin: 20px 0;
}

/* LOADING STATES */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* UTILITY CLASSES */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.max-w-lg {
    max-width: 32rem;
}

.max-w-xl {
    max-width: 36rem;
}

.border {
    border: 2px solid var(--gray-200);
}

.border-t {
    border-top: 2px solid var(--gray-200);
}

.border-b {
    border-bottom: 2px solid var(--gray-200);
}

.border-l {
    border-left: 2px solid var(--gray-200);
}

.border-r {
    border-right: 2px solid var(--gray-200);
}

.rounded {
    border-radius: 6px;
}

.rounded-sm {
    border-radius: 4px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* RESPONSIVE GRID */
@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .py-6 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* FOCUS STATES FOR KEYBOARD NAVIGATION */
*:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}