/* ===========================================================================
   PAPPLIC DESIGN TOKENS
   Central Source of Truth for All Design Variables
   =========================================================================== */

:root {
    /* ========== BRAND COLORS ========== */
    --color-primary: #00C896;
    --color-secondary: #00976E;
    --color-success: #38a169;
    --color-warning: #d69e2e;
    --color-danger: #e53e3e;
    --color-info: #4facfe;

    /* ========== GRADIENTS ========== */
    --gradient-primary: linear-gradient(135deg, #00C896 0%, #00976E 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-danger: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #00C896 0%, #00976E 50%, #00E5B4 100%);
    --gradient-background: linear-gradient(135deg, #f5f7fa 0%, #e8f5f0 50%, #d4f0e8 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));

    /* ========== NEUTRAL COLORS ========== */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;

    /* Legacy color aliases (for backwards compatibility) */
    --light: #f8f9fa;
    --grey: #e9ecef;
    --dark-grey: #718096;
    --dark: #2d3748;
    --red: #e53e3e;
    --green: #38a169;
    --blue: #00C896;
    --yellow: #d69e2e;
    --orange: #ed8936;
    --light-blue: #bee3f8;
    --light-yellow: #faf089;
    --light-orange: #fed7aa;

    /* ========== BACKGROUND COLORS ========== */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-muted: #e9ecef;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.25);

    /* ========== TEXT COLORS ========== */
    --text-primary: #1a2e25;
    --text-secondary: #3d5a50;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --text-white: #ffffff;

    /* ========== SHADOWS ========== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Colored Shadows */
    --shadow-primary: 0 4px 15px rgba(0, 200, 150, 0.3);
    --shadow-success: 0 4px 15px rgba(56, 161, 105, 0.3);
    --shadow-danger: 0 4px 15px rgba(229, 62, 62, 0.3);
    --shadow-warning: 0 4px 15px rgba(214, 158, 46, 0.3);

    /* Glass Effect Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 151, 110, 0.2);
    --shadow-floating: 0 10px 40px rgba(0, 0, 0, 0.1);

    /* Component-specific Shadows */
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    --sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
    --dropdown-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --modal-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

    /* ========== BORDER RADIUS ========== */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 50%;
    --radius-pill: 9999px;

    /* ========== SPACING ========== */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* ========== TYPOGRAPHY ========== */
    --font-primary: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Lato', Arial, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ========== TRANSITIONS ========== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

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

    /* ========== LAYOUT ========== */
    --navbar-height: 70px;
    --sidebar-width: 300px;
    --sidebar-collapsed-width: 80px;
    --container-max-width: 1400px;

    /* ========== BLUR EFFECTS ========== */
    --blur-xs: blur(4px);
    --blur-sm: blur(8px);
    --blur-md: blur(12px);
    --blur-lg: blur(20px);
    --blur-xl: blur(40px);
}

/* ========== DARK MODE VARIABLES ========== */
body.dark {
    --color-primary: #34D4A7;
    --color-secondary: #00C896;

    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-muted: #4a5568;
    --bg-glass: rgba(45, 55, 72, 0.8);

    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #a0aec0;

    /* Legacy aliases for dark mode */
    --light: #1a202c;
    --dark: #f7fafc;
    --grey: #4a5568;
    --dark-grey: #a0aec0;

    /* Adjusted shadows for dark mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.4);

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --navbar-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    --sidebar-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

/* ========== UTILITY CLASSES FOR COLORS ========== */
.text-primary { color: var(--color-primary) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-info { color: var(--color-info) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background: var(--color-primary) !important; }
.bg-secondary { background: var(--color-secondary) !important; }
.bg-success { background: var(--color-success) !important; }
.bg-warning { background: var(--color-warning) !important; }
.bg-danger { background: var(--color-danger) !important; }
.bg-info { background: var(--color-info) !important; }

.gradient-primary { background: var(--gradient-primary) !important; }
.gradient-secondary { background: var(--gradient-secondary) !important; }
.gradient-success { background: var(--gradient-success) !important; }
.gradient-warning { background: var(--gradient-warning) !important; }
.gradient-danger { background: var(--gradient-danger) !important; }
.gradient-info { background: var(--gradient-info) !important; }

/* ========== VISIBILITY UTILITIES ========== */
.hidden            { display: none !important; }
.form-inline       { display: inline !important; }

/* ========== ICON UTILITIES ========== */
.icon-success      { color: #27ae60; }
.icon-warning      { color: #e67e22; }
.icon-primary      { color: #0b6cf2; }
.icon-muted        { color: #ccc; }
.icon-muted-2      { color: #6c757d; }
.icon-brand        { color: #00C896; }
.icon-lg           { font-size: 3rem; }
.icon-md           { font-size: 1.5rem; }
.icon-spin         { animation: icon-spin-anim 1s linear infinite; }
@keyframes icon-spin-anim { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========== TEXT UTILITIES ========== */
.text-error        { color: var(--color-danger, #e53e3e) !important; }

/* ========== DETAIL INFO-ROW PATTERN ========== */
/* Reused across Job, Menu, Festival, Settings detail pages */
.detail-info-grid        { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.detail-info-grid--col   { display: flex; flex-direction: column; gap: 1.25rem; }
.detail-info-grid--mt    { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.25rem; }
.detail-info-col         { flex: 1; min-width: 180px; }
.detail-info-col--sm     { flex: 1; min-width: 150px; }
.detail-info-label       { font-size: 0.8rem; font-weight: 600; color: var(--text-muted, #718096);
                           text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.detail-info-value       { font-size: 1rem; color: var(--text-primary, #2d3748); }
.detail-info-value--bold  { font-weight: 600; }
.detail-info-value--bold7 { font-weight: 700; }
.detail-info-value--brand { color: #00C896; font-weight: 700; }
.detail-info-value--large { font-size: 1.25rem; font-weight: 800; color: #00C896; }
.detail-info-value--muted { color: var(--text-secondary, #4a5568); }
.detail-info-value--prose { color: var(--text-secondary, #4a5568); line-height: 1.6; }
.detail-info-value--link  { font-size: 1rem; font-weight: 600; color: #00C896; text-decoration: none; }
.detail-description-mt    { margin-top: 1.25rem; }

/* ========== BUTTON LOADING STATE ========== */
.btn-loading { pointer-events: none; opacity: 0.7; cursor: not-allowed; }
