/**
 * PWA CSS Custom Properties (Variables)
 * Mobile-optimized color and styling configuration
 * LIGHT THEME ONLY - White backgrounds with teal accents
 */

:root {
    /* Primary Colors - Light Teal/Cyan */
    --primary-color: #04B9A1;
    --primary-hover: #0891b2;
    --primary-light: #cffafe;
    --primary-dark: #0e7490;

    /* Secondary Colors - Light Gray */
    --secondary-color: #94a3b8;
    --secondary-hover: #64748b;
    --secondary-light: #f1f5f9;
    --secondary-dark: #475569;

    /* Success Colors - Light Green */
    --success-color: #22c55e;
    --success-hover: #16a34a;
    --success-light: #dcfce7;
    --success-dark: #15803d;

    /* Warning Colors - Light Amber */
    --warning-color: #fbbf24;
    --warning-hover: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #d97706;

    /* Danger Colors - Light Red */
    --danger-color: #f87171;
    --danger-hover: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #dc2626;

    /* Info Colors - Light Blue */
    --info-color: #60a5fa;
    --info-hover: #3b82f6;
    --info-light: #dbeafe;
    --info-dark: #2563eb;

    /* Neutral Colors - Light Palette */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Background Colors - Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-dark: #404040;

    /* Text Colors - Light Theme */
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    --text-inverse: #ffffff;

    /* Border Colors - Light Theme */
    --border-color: #e5e5e5;
    --border-light: #f5f5f5;
    --border-dark: #d4d4d4;

    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);

    /* Spacing (Mobile optimized) */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Font Sizes (Mobile optimized) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;

    /* Z-Index */
    --z-bottom-nav: 1000;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-toast: 1060;

    /* Mobile specific */
    --bottom-nav-height: 60px;
    --header-height: 56px;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* Force Light Mode - Override system dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        /* Keep light theme even if system prefers dark */
        --bg-primary: #ffffff;
        --bg-secondary: #fafafa;
        --bg-tertiary: #f5f5f5;
        --text-primary: #171717;
        --text-secondary: #525252;
        --text-tertiary: #737373;
        --border-color: #e5e5e5;
    }
}

/* Force white backgrounds globally */
body {
    background-color: #fafafa !important;
    color: #171717 !important;
}

.page-container {
    background-color: #fafafa !important;
}

.card,
.action-card,
.info-section,
.form-section,
.camera-section,
.location-section,
.submit-section,
.stock-list,
.approval-card,
.login-container {
    background-color: #ffffff !important;
}

/* Ensure header and nav are white */
.pwa-header,
.pwa-bottom-nav,
.header,
.bottom-nav {
    background-color: #ffffff !important;
}
