/**
 * CSS Variables - Green Hospital Theme
 * Global design tokens dengan palet warna hijau ramah lingkungan
 */

:root {
    /* ===== GREEN HOSPITAL COLOR PALETTE ===== */

    /* Primary Green Colors */
    --color-green-light: #90EE90;
    --color-green-dark: #228B22;
    --color-green-medium: #32CD32;
    --color-green-forest: #1a6b1a;
    --color-green-mint: #98FF98;
    --color-green-rgb: 34, 139, 34;

    /* Secondary Blue Colors */
    --color-blue-calm: #4169E1;
    --color-blue-light: #6495ED;
    --color-blue-dark: #1e40af;
    --color-blue-rgb: 65, 105, 225;

    /* Neutral Colors */
    --color-white: #FFFFFF;
    --color-gray-light: #F5F5F5;
    --color-gray-100: #F9FAFB;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-black: #000000;

    /* Semantic Colors (Eco-friendly) */
    --color-success: #228B22;
    --color-success-light: #90EE90;
    --color-success-dark: #1a6b1a;

    --color-warning: #FFA500;
    --color-warning-light: #FFB347;
    --color-warning-dark: #FF8C00;

    --color-danger: #DC143C;
    --color-danger-light: #FF6B88;
    --color-danger-dark: #C41E3A;

    --color-info: #4169E1;
    --color-info-light: #6495ED;
    --color-info-dark: #1e40af;

    /* Text Colors */
    --color-text-primary: #1F2937;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;
    --color-text-white: #FFFFFF;
    --color-text-green: #228B22;

    /* Background Colors */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F5F5F5;
    --color-bg-green-light: #F0FFF0;
    --color-bg-blue-light: #F0F8FF;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);

    /* ===== GRADIENTS (Green Theme) ===== */
    --gradient-green-primary: linear-gradient(135deg, #90EE90, #228B22);
    --gradient-green-light: linear-gradient(135deg, #98FF98, #90EE90);
    --gradient-green-blue: linear-gradient(135deg, #90EE90, #4169E1);
    --gradient-blue-calm: linear-gradient(135deg, #6495ED, #4169E1);
    --gradient-hero: linear-gradient(135deg, rgba(144, 238, 144, 0.85), rgba(65, 105, 225, 0.75));
    --gradient-success: linear-gradient(135deg, #228B22, #90EE90);
    --gradient-card: linear-gradient(135deg, rgba(144, 238, 144, 0.1), rgba(255, 255, 255, 0.9));

    /* ===== TYPOGRAPHY ===== */
    --font-family-primary: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-family-secondary: 'Inter', sans-serif;
    --font-family-mono: 'Monaco', 'Consolas', monospace;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-lg: 1.125rem;
    /* 18px */
    --font-size-xl: 1.25rem;
    /* 20px */
    --font-size-2xl: 1.5rem;
    /* 24px */
    --font-size-3xl: 1.875rem;
    /* 30px */
    --font-size-4xl: 2.25rem;
    /* 36px */
    --font-size-5xl: 3rem;
    /* 48px */
    --font-size-6xl: 3.75rem;
    /* 60px */

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;

    /* ===== SPACING ===== */
    --space-0: 0;
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */
    --space-32: 8rem;
    /* 128px */

    /* ===== SIZING ===== */
    --size-full: 100%;
    --size-screen: 100vw;
    --size-min: min-content;
    --size-max: max-content;
    --size-fit: fit-content;

    /* Container Sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    /* Component Sizes */
    --header-height: 70px;
    --header-height-mobile: 60px;
    --footer-height: auto;
    --sidebar-width: 280px;
    --hero-height: 100vh;
    --hero-height-mobile: 70vh;

    /* ===== BORDERS ===== */
    --border-width-0: 0;
    --border-width-1: 1px;
    --border-width-2: 2px;
    --border-width-4: 4px;
    --border-width-8: 8px;

    --border-radius-none: 0;
    --border-radius-sm: 0.25rem;
    /* 4px */
    --border-radius-base: 0.5rem;
    /* 8px */
    --border-radius-md: 0.75rem;
    /* 12px */
    --border-radius-lg: 1rem;
    /* 16px */
    --border-radius-xl: 1.5rem;
    /* 24px */
    --border-radius-2xl: 2rem;
    /* 32px */
    --border-radius-full: 9999px;

    /* ===== SHADOWS (Green Theme) ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Component Shadows (Green Theme) */
    --shadow-card: 0 4px 25px rgba(144, 238, 144, 0.15);
    --shadow-card-hover: 0 8px 40px rgba(144, 238, 144, 0.25);
    --shadow-dropdown: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 4px 15px rgba(34, 139, 34, 0.3);
    --shadow-button-hover: 0 8px 25px rgba(34, 139, 34, 0.4);
    --shadow-green: 0 4px 20px rgba(144, 238, 144, 0.2);
    --shadow-blue: 0 4px 20px rgba(65, 105, 225, 0.2);

    /* ===== Z-INDEX ===== */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 9999;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Component Transitions */
    --transition-dropdown: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-modal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-button: all 0.3s ease;
    --transition-hover: all 0.2s ease;

    /* ===== ANIMATIONS ===== */
    --animation-spin: spin 1s linear infinite;
    --animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --animation-bounce: bounce 1s infinite;
    --animation-fade-in: fadeIn 0.5s ease;
    --animation-slide-up: slideUp 0.5s ease;
    --animation-slide-down: slideDown 0.5s ease;

    /* ===== BREAKPOINTS ===== */
    --breakpoint-xs: 0px;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;

    /* ===== OPACITY ===== */
    --opacity-0: 0;
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-30: 0.3;
    --opacity-40: 0.4;
    --opacity-50: 0.5;
    --opacity-60: 0.6;
    --opacity-70: 0.7;
    --opacity-80: 0.8;
    --opacity-90: 0.9;
    --opacity-100: 1;

    /* ===== BLUR ===== */
    --blur-sm: 4px;
    --blur-base: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;
    --blur-2xl: 40px;
    --blur-3xl: 64px;
}

/* ===== UTILITY CLASSES (Green Theme) ===== */

/* Text Colors */
.text-primary {
    color: var(--color-green-dark) !important;
}

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

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

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

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

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

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

.text-blue {
    color: var(--color-blue-calm) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--color-green-dark) !important;
}

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

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

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

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

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

.bg-blue-calm {
    background-color: var(--color-blue-calm) !important;
}

/* Gradients */
.gradient-primary {
    background: var(--gradient-green-primary) !important;
}

.gradient-success {
    background: var(--gradient-success) !important;
}

.gradient-green-blue {
    background: var(--gradient-green-blue) !important;
}

/* Shadows */
.shadow-card {
    box-shadow: var(--shadow-card) !important;
}

.shadow-dropdown {
    box-shadow: var(--shadow-dropdown) !important;
}

.shadow-button {
    box-shadow: var(--shadow-button) !important;
}

.shadow-green {
    box-shadow: var(--shadow-green) !important;
}

/* Border Radius */
.rounded-sm {
    border-radius: var(--border-radius-sm) !important;
}

.rounded {
    border-radius: var(--border-radius-base) !important;
}

.rounded-md {
    border-radius: var(--border-radius-md) !important;
}

.rounded-lg {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--border-radius-xl) !important;
}

.rounded-full {
    border-radius: var(--border-radius-full) !important;
}

/* Transitions */
.transition-fast {
    transition: var(--transition-fast) !important;
}

.transition {
    transition: var(--transition-base) !important;
}

.transition-slow {
    transition: var(--transition-slow) !important;
}

/* Z-Index */
.z-dropdown {
    z-index: var(--z-index-dropdown) !important;
}

.z-modal {
    z-index: var(--z-index-modal) !important;
}

.z-tooltip {
    z-index: var(--z-index-tooltip) !important;
}

/* ===== COMPONENT MIXINS (Green Theme) ===== */

/* Button Mixin */
.btn-mixin {
    border-radius: var(--border-radius-base);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-button);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Card Mixin */
.card-mixin {
    background: var(--color-bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-hover);
    border: 1px solid rgba(144, 238, 144, 0.2);
}

.card-mixin:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-5px);
}

/* Input Mixin */
.input-mixin {
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-base);
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}

.input-mixin:focus {
    border-color: var(--color-green-dark);
    box-shadow: 0 0 0 3px rgba(144, 238, 144, 0.2);
}

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 575.98px) {
    .d-xs-none {
        display: none !important;
    }

    .d-xs-block {
        display: block !important;
    }

    .d-xs-flex {
        display: flex !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .d-sm-none {
        display: none !important;
    }

    .d-sm-block {
        display: block !important;
    }

    .d-sm-flex {
        display: flex !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-flex {
        display: flex !important;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-flex {
        display: flex !important;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }

    .d-xl-block {
        display: block !important;
    }

    .d-xl-flex {
        display: flex !important;
    }
}
