/* Heart Pharmacy Brand Design System */
/* Official Heart Pharmacy Colors and Typography */

:root {
    /* Primary Heart Pharmacy Colors */
    --walmart-blue: #8B6858;
    --walmart-dark-blue: #6B4226;
    --walmart-light-blue: #A68A7B;
    --walmart-yellow: #D4A574;
    --walmart-spark-yellow: #E8C88B;
    --walmart-green: #7FA06E;
    --walmart-orange: #E8B4B4;
    
    /* Secondary Colors */
    --walmart-gray-900: #2d333f;
    --walmart-gray-700: #46474a;
    --walmart-gray-500: #6c757d;
    --walmart-gray-300: #e9ecef;
    --walmart-gray-100: #f0f2f5;
    --walmart-white: #ffffff;
    
    /* Semantic Colors */
    --success-green: #7FA06E;
    --warning-yellow: #E8C88B;
    --danger-red: #CD8B8B;
    --info-blue: #8B6858;
    
    /* Text Colors */
    --text-primary: #4A3C33;
    --text-secondary: #7D6B5F;
    --text-muted: #A09080;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #FFF9F5;
    --bg-dark: #4A3C33;
    --bg-light: #FFF5F0;
    
    /* Border Colors */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --border-dark: #c6c7ca;
    
    /* Shadow Definitions */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Typography Scale */
    --font-family-primary: 'Bogle', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, Consolas, 'Courier New', monospace;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px */
    --space-lg: 1.5rem;    /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */
    
    /* Transition Durations */
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;
    
    /* 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;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Typography */
body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* Links */
a {
    color: var(--walmart-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--walmart-dark-blue);
    text-decoration: underline;
}

/* Buttons - Walmart Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 206, 0.2);
}

.btn-primary {
    background-color: var(--walmart-blue);
    color: var(--text-white);
    border-color: var(--walmart-blue);
}

.btn-primary:hover {
    background-color: var(--walmart-dark-blue);
    border-color: var(--walmart-dark-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--walmart-blue);
    border-color: var(--walmart-blue);
}

.btn-secondary:hover {
    background-color: rgba(0, 113, 206, 0.05);
}

.btn-success {
    background-color: var(--walmart-green);
    color: var(--text-white);
    border-color: var(--walmart-green);
}

.btn-warning {
    background-color: var(--walmart-yellow);
    color: var(--text-primary);
    border-color: var(--walmart-yellow);
}

.btn-danger {
    background-color: var(--danger-red);
    color: var(--text-white);
    border-color: var(--danger-red);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.badge-primary {
    background-color: rgba(0, 113, 206, 0.1);
    color: var(--walmart-blue);
}

.badge-success {
    background-color: rgba(118, 192, 67, 0.1);
    color: var(--walmart-green);
}

.badge-warning {
    background-color: rgba(255, 194, 32, 0.1);
    color: #b08000;
}

.badge-danger {
    background-color: rgba(217, 83, 79, 0.1);
    color: var(--danger-red);
}

/* Forms */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--walmart-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 206, 0.1);
}

/* Cards */
.card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-body {
    padding: var(--space-lg);
}

/* Alerts */
.alert {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: var(--space-md);
}

.alert-info {
    background-color: rgba(91, 192, 222, 0.1);
    border-color: var(--info-blue);
    color: #31708f;
}

.alert-success {
    background-color: rgba(92, 184, 92, 0.1);
    border-color: var(--success-green);
    color: #3c763d;
}

.alert-warning {
    background-color: rgba(240, 173, 78, 0.1);
    border-color: var(--warning-yellow);
    color: #8a6d3b;
}

.alert-danger {
    background-color: rgba(217, 83, 79, 0.1);
    border-color: var(--danger-red);
    color: #a94442;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: currentColor;
}

.status-indicator.online { color: var(--success-green); }
.status-indicator.offline { color: var(--danger-red); }
.status-indicator.busy { color: var(--warning-yellow); }
.status-indicator.away { color: var(--walmart-gray-500); }

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-light);
    border-top-color: var(--walmart-blue);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-medium { font-weight: var(--font-weight-medium); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}