/**
 * iFinance Brand Colors & Design System
 * Single source of truth for all colors, typography, and design tokens
 * This file should be imported first in all templates
 */

:root {
    /* Primary Brand Colors */
    --ideal-teal: #5CBDBD;
    --ideal-teal-dark: #4A9999;
    --ideal-teal-light: #7DD2D2;
    --ideal-teal-bright: #6DCFCF;

    /* Supporting Colors */
    --ideal-gray: #666666;
    --ideal-gray-light: #f8f9fa;
    --ideal-gray-medium: #dee2e6;
    --ideal-text-dark: #333333;
    --ideal-text-muted: #6c757d;
    --ideal-white: #ffffff;
    --ideal-black: #000000;

    /* Semantic Colors */
    --ideal-success: #28a745;
    --ideal-success-light: #d4edda;
    --ideal-warning: #ffc107;
    --ideal-warning-light: #fff3cd;
    --ideal-danger: #dc3545;
    --ideal-danger-light: #f8d7da;
    --ideal-info: #17a2b8;
    --ideal-info-light: #d1ecf1;

    /* Background Gradients */
    --ideal-gradient-primary: linear-gradient(135deg, var(--ideal-teal-light) 0%, var(--ideal-teal) 100%);
    --ideal-gradient-header: linear-gradient(135deg, #26a69a 0%, #4db6ac 100%);

    /* Typography */
    --ideal-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --ideal-font-family-mono: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    --ideal-font-weight-normal: 400;
    --ideal-font-weight-medium: 500;
    --ideal-font-weight-semibold: 600;
    --ideal-font-weight-bold: 700;

    /* Spacing */
    --ideal-spacing-xs: 0.25rem;
    --ideal-spacing-sm: 0.5rem;
    --ideal-spacing-md: 1rem;
    --ideal-spacing-lg: 1.5rem;
    --ideal-spacing-xl: 2rem;
    --ideal-spacing-xxl: 3rem;

    /* Border Radius */
    --ideal-border-radius-sm: 0.25rem;
    --ideal-border-radius-md: 0.375rem;
    --ideal-border-radius-lg: 0.5rem;

    /* Shadows */
    --ideal-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ideal-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --ideal-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --ideal-transition-fast: 0.15s ease;
    --ideal-transition-normal: 0.2s ease;
    --ideal-transition-slow: 0.3s ease;
}

/* Global Spinner Styling - Override Bootstrap defaults to use brand teal */
.spinner-border {
    color: var(--ideal-teal) !important;
    border-color: currentcolor currentcolor transparent currentcolor !important;
}

/* Specific overrides for common spinner classes */
.spinner-border.text-primary,
.text-primary .spinner-border {
    color: var(--ideal-teal) !important;
}

/* Ensure spinners in buttons also use teal */
.btn .spinner-border {
    color: var(--ideal-teal) !important;
}
