/**
 * EstateCore ERP — Central Custom Theme Stylesheet
 * 100% Unified Emerald Forest Palette from HostSuite360 Color Hunt Palette
 *
 * Color Specifications:
 * - gold: #FED24F (Warm Luxury Gold)
 * - yellow: #FFF449 (Vibrant Sun Yellow)
 * - lime: #B2D959 (Bright Lime Accent)
 * - palm: #7EC151 (Rich Tropical Palm Green)
 * - dark: #142210 (Deep Forest Charcoal-Green)
 * - darkcard: #1C2E17 (Rich Dark Green Panel)
 * - card: #243C1D (Forest Green Card Surface)
 * - light: #F8FAF4 (Soft Light Ivory Surface)
 */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --color-gold: #FED24F;
    --color-yellow: #FFF449;
    --color-lime: #B2D959;
    --color-palm: #7EC151;
    --color-dark: #142210;
    --color-darkcard: #1C2E17;
    --color-card: #243C1D;
    --color-light: #F8FAF4;
}

/* 100% Force Unified Emerald Theme Across All Elements, Views & Portals */
body, main, [class*="bg-slate-950"] {
    font-family: 'Instrument Sans', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    background-color: #142210 !important;
    color: #F8FAF4;
}

::selection {
    background-color: #FED24F;
    color: #142210;
}

/* Force Emerald Panels & Cards */
[class*="bg-slate-900"],
[class*="bg-slate-950/60"],
[class*="bg-slate-950/80"],
[class*="bg-slate-900/80"],
[class*="bg-slate-900/50"],
[class*="bg-slate-900/60"],
[class*="bg-[#0f172a]"],
[class*="bg-[#0F172A]"],
[class*="bg-[#1e293b]"],
[class*="bg-[#090d16]"],
[class*="bg-[#0b1329]"],
[class*="bg-[#0a0f1d]"] {
    background-color: #1C2E17 !important;
    border-color: rgba(126, 193, 81, 0.3) !important;
}

/* Force Secondary Surfaces & Table Rows */
[class*="bg-slate-800"],
[class*="bg-slate-800/60"],
[class*="bg-slate-800/50"],
[class*="bg-slate-800/30"],
[class*="bg-slate-800/20"] {
    background-color: #243C1D !important;
    border-color: rgba(126, 193, 81, 0.25) !important;
}

/* Table Headers & Dark Highlights */
th, tr[class*="bg-slate-900"], tr[class*="bg-slate-950"] {
    background-color: #142210 !important;
}

/* Force Emerald Borders */
[class*="border-slate-800"],
[class*="border-slate-700"] {
    border-color: rgba(126, 193, 81, 0.3) !important;
}

/* Muted Subtitles & Captions */
.text-slate-400, .text-slate-500 {
    color: #B2D959 !important;
}

/* Gradient Utility Classes */
.gradient-gold-lime {
    background: linear-gradient(135deg, #FED24F 0%, #B2D959 50%, #7EC151 100%);
}

.gradient-dark-palm {
    background: linear-gradient(180deg, #142210 0%, #1C2E17 100%);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #FFF449 0%, #FED24F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-glass-border {
    border-color: rgba(126, 193, 81, 0.25);
}

.theme-glass-panel {
    background: rgba(28, 46, 23, 0.90);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(126, 193, 81, 0.20);
}

/* Custom Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
    background: #142210;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
    background: #243C1D;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
    background: #7EC151;
}
