/* 
 * Healthier Brand Colors
 * Centralized color palette matching the logo's teal and green gradient
 */

:root {
    /* ===== Primary Brand Colors ===== */
    --brand-primary: #1da6a0;
    /* Main teal - from logo */
    --brand-secondary: #7bc77f;
    /* Green accent - from logo */
    --brand-dark: #0d7a73;
    /* Dark teal - for hover states */
    --brand-light: #e6f7f6;
    /* Light teal - for backgrounds */
    --brand-lighter: #f0faf9;
    /* Very light teal - subtle backgrounds */
    --brand-footer-bg: #042b29;
    /* Very dark teal for footer */

    /* ===== Brand Gradients ===== */
    --brand-gradient: linear-gradient(135deg, #7bc77f 0%, #1da6a0 50%, #0d7a73 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(123, 199, 127, 0.1) 0%, rgba(29, 166, 160, 0.1) 100%);

    /* ===== Semantic Colors ===== */
    --color-primary: var(--brand-primary);
    --color-primary-hover: var(--brand-dark);
    --color-link: var(--brand-primary);
    --color-link-hover: var(--brand-dark);
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: var(--brand-primary);

    /* ===== Text Colors ===== */
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-text-light: #9ca3af;
    --color-text-white: #ffffff;

    /* ===== Background Colors ===== */
    --color-bg-white: #ffffff;
    --color-bg-light: #f9fafb;
    --color-bg-gray: #f3f4f6;
    --color-bg-brand: var(--brand-light);
    --color-bg-brand-soft: var(--brand-lighter);

    /* ===== Border Colors ===== */
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-border-dark: #d1d5db;
    --color-border-brand: var(--brand-primary);

    /* ===== Shadow Colors ===== */
    --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-brand: 0 4px 12px rgba(29, 166, 160, 0.2);
}

/* ===== Utility Classes ===== */
.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.text-brand-dark {
    color: var(--brand-dark) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

.bg-brand-gradient {
    background: var(--brand-gradient) !important;
}

.border-brand {
    border-color: var(--brand-primary) !important;
}

.border-brand-light {
    border-color: var(--brand-light) !important;
}

/* ===== Button Overrides ===== */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: white !important;
}

.btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: white !important;
}

.btn-gradient {
    background: var(--brand-gradient) !important;
    border: none !important;
    color: white !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* ===== Link Overrides ===== */
a {
    color: var(--color-link);
    transition: color 0.2s;
}

a:hover {
    color: var(--color-link-hover);
}

/* ===== Form Input Overrides ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(29, 166, 160, 0.25) !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}