/* ============================================
   BALWIN LIFESTYLE - DESIGN SYSTEM
   Professional, Clean, Consistent Styling
   ============================================ */

/* === COLOR PALETTE === */
:root {
    /* Primary Brand Colors */
    --brand-primary: #1976d2;
    --brand-primary-light: #42a5f5;
    --brand-primary-dark: #1565c0;
    
    /* Neutral Colors */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    
    /* Semantic Colors */
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-error: #f44336;
    --color-info: #2196f3;
    
    /* Background Colors */
    --bg-page: #f5f5f5;
    --bg-card: #ffffff;
    --bg-hover: #fafafa;
    --bg-gradient-start: #e3f2fd;
    --bg-gradient-end: #bbdefb;
    
    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-tertiary: #9e9e9e;
    --text-on-primary: #ffffff;
    
    /* Border Colors */
    --border-light: #e0e0e0;
    --border-medium: #bdbdbd;
    --border-dark: #9e9e9e;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 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;
    
    /* Header Spacing - Compact */
    --header-padding: 1.25rem;
    --header-padding-mobile: 1rem;
}

/* === TYPOGRAPHY === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
}

/* === CARD STYLES === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* === BUTTON STYLES === */
.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-on-primary);
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-light:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-medium);
}

/* === GRADIENT BACKGROUNDS === */
.gradient-primary {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
}

.gradient-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
}

/* === TEXT UTILITIES === */
.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-error { color: var(--color-error) !important; }
.text-info { color: var(--color-info) !important; }

/* === BACKGROUND UTILITIES === */
.bg-card { background-color: var(--bg-card) !important; }
.bg-page { background-color: var(--bg-page) !important; }
.bg-hover { background-color: var(--bg-hover) !important; }

/* === BORDER UTILITIES === */
.border-light { border-color: var(--border-light) !important; }
.border-medium { border-color: var(--border-medium) !important; }
.border-dark { border-color: var(--border-dark) !important; }
