/**
 * Peace Style Wear (PSW) Global Design System & Dynamic Theme Layer
 * All UI colors, typography, buttons, cards, and interactive states
 * derive from CSS Custom Properties defined below.
 */

:root {
    /* Brand Colors */
    --psw-primary: #1A365D;             /* Corporate Deep Navy */
    --psw-primary-rgb: 26, 54, 93;
    --psw-primary-hover: #152C4D;
    --psw-primary-light: #EBF1F6;
    --psw-secondary: #0D9488;           /* Teal / Emerald Mint */
    --psw-secondary-rgb: 13, 148, 136;
    --psw-secondary-hover: #0F766E;
    --psw-accent: #E0A96D;              /* Warm Gold */
    --psw-accent-hover: #C69259;

    /* Functional Status Colors */
    --psw-status-new: #3B82F6;          /* Blue */
    --psw-status-processing: #F59E0B;   /* Amber */
    --psw-status-ready: #10B981;        /* Green */
    --psw-status-placed: #8B5CF6;       /* Purple */
    --psw-status-shipped: #06B6D4;      /* Cyan */
    --psw-status-delivered: #059669;    /* Dark Green */
    --psw-status-cancelled: #EF4444;    /* Red */

    /* Surfaces & Layout */
    --psw-bg-main: #F8FAFC;
    --psw-bg-card: #FFFFFF;
    --psw-border: #E2E8F0;
    --psw-border-hover: #CBD5E1;

    /* Typography & Content */
    --psw-text-primary: #0F172A;
    --psw-text-secondary: #64748B;
    --psw-text-muted: #94A3B8;
    --psw-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --psw-font-heading: 'Manrope', 'Inter', sans-serif;

    /* Radii */
    --psw-radius-sm: 4px;
    --psw-radius-md: 6px;
    --psw-radius-lg: 10px;
    --psw-radius-full: 9999px;

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

/* =========================================================
   GLOBAL OVERRIDES GROUNDED IN DESIGN TOKENS
   ========================================================= */

/* Primary Button */
.theme-btn {
    background: var(--psw-primary) !important;
    border-radius: var(--psw-radius-md) !important;
    color: #ffffff !important;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.theme-btn:hover {
    background: var(--psw-primary-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(var(--psw-primary-rgb), 0.25);
    transform: translateY(-1px);
}

.border-btn {
    border: 1px solid var(--psw-border) !important;
    border-radius: var(--psw-radius-md) !important;
    color: var(--psw-text-secondary) !important;
    transition: all 0.2s ease;
}

.border-btn:hover {
    background: var(--psw-primary-light) !important;
    border-color: var(--psw-primary) !important;
    color: var(--psw-primary) !important;
}

/* Nav Links & Pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--psw-primary) !important;
    color: #ffffff !important;
    border-radius: var(--psw-radius-md) !important;
}

.nav-link {
    color: var(--psw-primary) !important;
}

/* Reset / Action Buttons */
.role-reset-btn {
    color: var(--psw-primary) !important;
    border: 1px solid var(--psw-primary) !important;
    border-radius: var(--psw-radius-sm) !important;
}

.role-reset-btn:hover {
    background-color: var(--psw-primary) !important;
    color: #ffffff !important;
}

.btn-custom-warning {
    background-color: var(--psw-secondary) !important;
    color: #ffffff !important;
    border-radius: var(--psw-radius-md) !important;
}

.btn-custom-warning:hover {
    background-color: var(--psw-secondary-hover) !important;
    color: #ffffff !important;
}

.custom-warning-color {
    color: var(--psw-secondary) !important;
}

/* Avatar Badge */
.avatar {
    background: var(--psw-primary) !important;
}

/* Form Inputs */
.form-control:focus {
    border-color: var(--psw-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--psw-primary-rgb), 0.15) !important;
}

/* Status Badges */
.badge-psw-new {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #1D4ED8 !important;
    border-radius: var(--psw-radius-sm);
    padding: 4px 8px;
    font-weight: 600;
}

.badge-psw-ready {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #047857 !important;
    border-radius: var(--psw-radius-sm);
    padding: 4px 8px;
    font-weight: 600;
}

.badge-psw-placed {
    background-color: rgba(139, 92, 246, 0.15) !important;
    color: #6D28D9 !important;
    border-radius: var(--psw-radius-sm);
    padding: 4px 8px;
    font-weight: 600;
}

.badge-psw-shipped {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #0E7490 !important;
    border-radius: var(--psw-radius-sm);
    padding: 4px 8px;
    font-weight: 600;
}

.badge-psw-delivered {
    background-color: rgba(5, 150, 105, 0.15) !important;
    color: #065F46 !important;
    border-radius: var(--psw-radius-sm);
    padding: 4px 8px;
    font-weight: 600;
}

.badge-psw-cancelled {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #B91C1C !important;
    border-radius: var(--psw-radius-sm);
    padding: 4px 8px;
    font-weight: 600;
}
