/**
 * CSS Variables and Custom Properties
 * Core design tokens for the application
 */

:root {
    /* Primary Colors - Teal palette */
    --primary: #0dae9c;
    --primary-hover: #0b9987;
    --primary-light: rgba(13, 174, 156, 0.1);
    --primary-dark: #0a8b7d;

    /* Background Colors */
    --background: #1e293b;
    --background-secondary: #0f172a;
    --background-muted: rgba(30, 41, 59, 0.95);

    /* Status Colors */
    --primary-green: #22c55e;
    --light-green: #f0fdf4;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --success: var(--primary-green);

    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #fff;
    --black: #000;

    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg:
        0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-xl:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-sans:
        -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue",
        arial, sans-serif;
    --font-mono: "Courier New", courier, monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;

    /* Transitions */
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;

    /* Container */
    --container-max: 1400px;
    --container-padding: var(--space-lg);

    /* Additional Status Colors */
    --primary-green-light: #86efac;
    --primary-green-deep: #059669;
    --primary-green-whatsapp: #25d366;
    --primary-green-whatsapp-dark: #1fa855;
    --status-pending: #f59e0b;
    --status-confirmed: #22c55e;
    --status-cancelled: #ef4444;
    --status-cancelled-dark: #dc2626;
    --status-cancelled-border: #b91c1c;
    --status-warning: #fbbf24;
    --status-warning-light: #fde047;
    --status-warning-dark: #d97706;
    --status-completed: #3b82f6;

    /* Extended Gray Scale */
    --gray-250: #e5e7eb;
    --gray-350: #d1d5db;
    --gray-450: #9ca3af;
    --gray-650: #374151;
    --gray-750: #1f2937;
    --gray-950: #0b1120;

    /* Surface Colors */
    --surface-muted: #f9fafb;

    /* Opacity Values */
    --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-80: 0.8;

    /* Backdrop Blur */
    --backdrop-blur-sm: blur(4px);
    --backdrop-blur-md: blur(8px);
    --backdrop-blur-lg: blur(12px);

    /* Font Family */
    --font-body:
        "Roboto", "Inter", -apple-system, blinkmacsystemfont, "Segoe UI",
        "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
        "Helvetica Neue", "Arial", sans-serif;

    /* Safe Area Insets - iOS notch/home indicator support */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-inset-left: env(safe-area-inset-left, 0px);
    --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

/* Mobile-specific font size adjustments for iPhone 13 and similar devices */
@media (max-width: 428px) {
    :root {
        /* Increase minimum font sizes for better mobile readability */
        --text-xs: 0.875rem;   /* 14px - was 12px */
        --text-sm: 1rem;       /* 16px - was 14px */
        --text-base: 1.125rem; /* 18px - was 16px */
    }
}
