/* 
 * Power Delivery Calcs - Brand Style Guide Implementation
 * Based on Company Brand Guidelines
 * Author: Claude Code
 * Date: 2025
 */

/* ===================================
   FONT DEFINITIONS
   =================================== */

/* Helvetica Neue Font Family */
@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-ULTLT.53dfd546af8a.TTF") format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-ULTLTIT.a90f9aecc703.TTF") format('truetype');
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-TH.86456629b43d.TTF") format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-THIT.a035fb6d26e7.TTF") format('truetype');
    font-weight: 200;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-LT.767485f28410.TTF") format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-LTIT.81f21bffb998.TTF") format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-ROMAN.ca276fdb4dfd.TTF") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-IT.3446bb01d271.TTF") format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-MD.fc14bc2125cf.TTF") format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-MDIT.7d69b4c35ea6.TTF") format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-BD.b8ecb6dc0b13.TTF") format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-BDIT.af4ce785cba2.TTF") format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-HV.067611aadeba.TTF") format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-HVIT.9c754b47210d.TTF") format('truetype');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-BLK.d7b080dff49f.TTF") format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url("../fonts/helvetica_neue/HELVETICANEUELTCOM-BLKIT.fdd5eca3728e.TTF") format('truetype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ===================================
   BRAND COLOR PALETTE
   =================================== */

:root {
    /* PRIMARY PALETTE - Red (Dominant foundation color) */
    --brand-primary: #A20C33;          /* Main brand red */
    --brand-primary-75: #B53951;       /* 75% tint */
    --brand-primary-50: #C8666F;       /* 50% tint */
    --brand-primary-25: #DB9397;       /* 25% tint */
    
    /* SECONDARY PALETTE - Blues and Grays (Depth and diversity) */
    --brand-blue-primary: #1B365D;     /* Deep blue */
    --brand-blue-75: #4B5E7D;          /* 75% tint */
    --brand-blue-50: #7B869D;          /* 50% tint */
    --brand-blue-25: #ABAEBD;          /* 25% tint */
    
    --brand-blue-light: #2E5984;       /* Light blue */
    --brand-blue-light-75: #58799F;    /* 75% tint */
    --brand-blue-light-50: #8299BA;    /* 50% tint */
    --brand-blue-light-25: #ACB9D5;    /* 25% tint */
    
    --brand-gray-dark: #3D3D3D;        /* Dark gray */
    --brand-gray-medium: #6B6B6B;      /* Medium gray */
    --brand-gray-light: #999999;       /* Light gray */
    --brand-gray-lighter: #C7C7C7;     /* Lighter gray */
    
    /* TERTIARY PALETTE - Bright colors (Small amounts, charts, infographics) */
    --brand-orange: #FF6600;           /* Bright orange */
    --brand-orange-75: #FF8533;        /* 75% tint */
    --brand-orange-50: #FFA366;        /* 50% tint */
    --brand-orange-25: #FFC299;        /* 25% tint */
    
    --brand-yellow: #FFD600;           /* Bright yellow */
    --brand-yellow-75: #FFDD33;        /* 75% tint */
    --brand-yellow-50: #FFE466;        /* 50% tint */
    --brand-yellow-25: #FFEB99;        /* 25% tint */
    
    --brand-green: #00B050;            /* Bright green */
    --brand-green-75: #33C073;         /* 75% tint */
    --brand-green-50: #66D096;         /* 50% tint */
    --brand-green-25: #99E0B9;         /* 25% tint */
    
    --brand-purple: #7030A0;           /* Bright purple */
    --brand-purple-75: #8D53B3;        /* 75% tint */
    --brand-purple-50: #AA76C6;        /* 50% tint */
    --brand-purple-25: #C799D9;        /* 25% tint */
    
    /* FUNCTIONAL COLORS */
    --brand-white: #FFFFFF;
    --brand-black: #000000;
    --brand-success: var(--brand-green);
    --brand-warning: var(--brand-yellow);
    --brand-danger: var(--brand-primary);
    --brand-info: var(--brand-blue-light);
    
    /* BACKGROUNDS AND BORDERS */
    --brand-bg-primary: var(--brand-white);
    --brand-bg-secondary: #F8F9FA;
    --brand-bg-tertiary: #E9ECEF;
    --brand-border-color: var(--brand-gray-lighter);
    --brand-border-light: #E5E5E5;
    
    /* TEXT COLORS */
    --brand-text-primary: var(--brand-gray-dark);
    --brand-text-secondary: var(--brand-gray-medium);
    --brand-text-muted: var(--brand-gray-light);
    --brand-text-white: var(--brand-white);
    
    /* SHADOWS */
    --brand-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --brand-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --brand-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* SPACING SCALE */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2rem;     /* 32px */
    --spacing-xxl: 3rem;    /* 48px */
    
    /* BORDER RADIUS */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* TRANSITIONS */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===================================
   TYPOGRAPHY SYSTEM
   =================================== */

/* Base Typography - Default to Helvetica Neue Light */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light is default per brand guidelines */
    line-height: 1.6;
    color: var(--brand-text-primary);
    background-color: var(--brand-bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px; /* Account for fixed navbar */
}

/* Typography Hierarchy */
h1, .h1 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--brand-text-primary);
    margin-bottom: var(--spacing-lg);
}

h2, .h2 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 2rem;
    line-height: 1.3;
    color: var(--brand-text-primary);
    margin-bottom: var(--spacing-md);
}

h3, .h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400; /* Roman for emphasis */
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--brand-text-primary);
    margin-bottom: var(--spacing-md);
}

h4, .h4 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400; /* Roman */
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--brand-text-primary);
    margin-bottom: var(--spacing-sm);
}

h5, .h5 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium for smaller headings */
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--brand-text-primary);
    margin-bottom: var(--spacing-sm);
}

h6, .h6 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium */
    font-size: 1rem;
    line-height: 1.4;
    color: var(--brand-text-secondary);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Body Text */
p, .paragraph {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 1rem;
    line-height: 1.6;
    color: var(--brand-text-primary);
    margin-bottom: var(--spacing-md);
}

/* Small Text */
small, .small {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--brand-text-secondary);
}

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

a:hover,
a:focus {
    color: var(--brand-primary-75);
    text-decoration: underline;
}

/* Emphasis Typography */
.text-brand-primary { color: var(--brand-primary); }
.text-brand-secondary { color: var(--brand-blue-primary); }
.text-muted { color: var(--brand-text-muted); }
.text-white { color: var(--brand-text-white); }

.font-light { font-weight: 300; }
.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* ===================================
   LAYOUT AND CONTAINERS
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-sm));
}

.col {
    flex: 1;
    padding: 0 var(--spacing-sm);
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--brand-border-light);
}

.page-header h1 {
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Flexbox Utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Mobile First Breakpoints */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .row {
        margin: 0;
    }
    
    .col {
        padding: 0;
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===================================
   COMPONENT STYLES
   =================================== */

/* Buttons */
.btn {
    display: inline-block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400; /* Roman */
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn:focus,
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--brand-shadow-md);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Primary Button - Brand Red */
.btn-primary {
    color: var(--brand-white);
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    color: var(--brand-white);
    background-color: var(--brand-primary-75);
    border-color: var(--brand-primary-75);
}

.btn-primary:active {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(0);
}

/* Secondary Button - Blue */
.btn-secondary {
    color: var(--brand-white);
    background-color: var(--brand-blue-primary);
    border-color: var(--brand-blue-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--brand-white);
    background-color: var(--brand-blue-75);
    border-color: var(--brand-blue-75);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--brand-primary);
    background-color: transparent;
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--brand-white);
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-secondary {
    color: var(--brand-blue-primary);
    background-color: transparent;
    border-color: var(--brand-blue-primary);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--brand-white);
    background-color: var(--brand-blue-primary);
    border-color: var(--brand-blue-primary);
}

/* Button Sizes */
.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--brand-bg-primary);
    background-clip: border-box;
    border: 1px solid var(--brand-border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--brand-shadow-sm);
    transition: box-shadow var(--transition-normal);
}

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

.card-header {
    padding: var(--spacing-md);
    margin-bottom: 0;
    background-color: var(--brand-bg-secondary);
    border-bottom: 1px solid var(--brand-border-color);
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
}

.card-header h3,
.card-header .card-title {
    margin-bottom: 0;
    font-size: 1.1rem;
    font-weight: 500; /* Medium */
    color: var(--brand-text-primary);
}

.card-body {
    flex: 1 1 auto;
    padding: var(--spacing-md);
}

.card-footer {
    padding: var(--spacing-md);
    background-color: var(--brand-bg-secondary);
    border-top: 1px solid var(--brand-border-color);
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: inline-block;
    margin-bottom: var(--spacing-xs);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium for labels */
    font-size: 0.875rem;
    color: var(--brand-text-primary);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--brand-text-primary);
    background-color: var(--brand-bg-primary);
    background-clip: padding-box;
    border: 1px solid var(--brand-border-color);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    color: var(--brand-text-primary);
    background-color: var(--brand-bg-primary);
    border-color: var(--brand-primary);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(162, 12, 51, 0.25);
}

.form-control::placeholder {
    color: var(--brand-text-muted);
    opacity: 1;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--brand-text-primary);
    background-color: var(--brand-bg-primary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--brand-border-color);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-select:focus {
    border-color: var(--brand-primary);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(162, 12, 51, 0.25);
}

/* Form Validation */
.is-valid {
    border-color: var(--brand-success);
}

.is-invalid {
    border-color: var(--brand-danger);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--brand-success);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--brand-danger);
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: var(--spacing-md);
    color: var(--brand-text-primary);
    vertical-align: top;
    border-color: var(--brand-border-color);
}

.table > :not(caption) > * > * {
    padding: 0.5rem 0.75rem;
    background-color: var(--brand-bg-primary);
    background-image: none;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px transparent;
}

.table > tbody {
    vertical-align: inherit;
}

.table > thead {
    vertical-align: bottom;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: var(--brand-border-color);
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--brand-bg-secondary);
}

.table-hover > tbody > tr:hover {
    background-color: var(--brand-primary-25);
}

.table th {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium for table headers */
    font-size: 0.875rem;
    color: var(--brand-text-primary);
    background-color: var(--brand-bg-secondary);
    border-bottom: 2px solid var(--brand-border-color);
}

.table td {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light for table data */
    font-size: 0.875rem;
}

/* Navigation */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    background-color: var(--brand-primary);
    color: var(--brand-white);
}

.navbar-brand {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium for brand */
    font-size: 1.25rem;
    color: var(--brand-white);
    text-decoration: none;
    white-space: nowrap;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--brand-white);
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    color: var(--brand-white);
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light for nav links */
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link.active {
    color: var(--brand-white);
    font-weight: 400; /* Roman for active links */
}

/* Alerts */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    font-size: 0.875rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500; /* Medium */
    font-size: 0.75rem;
    line-height: 1;
    color: var(--brand-white);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-sm);
    background-color: var(--brand-primary);
}

.badge-secondary {
    background-color: var(--brand-blue-primary);
}

.badge-success {
    background-color: var(--brand-success);
}

.badge-warning {
    background-color: var(--brand-warning);
    color: var(--brand-text-primary);
}

.badge-danger {
    background-color: var(--brand-danger);
}

/* Progress Bars */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: var(--brand-bg-tertiary);
    border-radius: var(--border-radius-sm);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: var(--brand-white);
    text-align: center;
    white-space: nowrap;
    background-color: var(--brand-primary);
    transition: width var(--transition-normal);
}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: var(--border-radius-md);
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: var(--brand-primary);
    text-decoration: none;
    background-color: var(--brand-bg-primary);
    border: 1px solid var(--brand-border-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300; /* Light */
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.page-link:hover {
    z-index: 2;
    color: var(--brand-primary-75);
    background-color: var(--brand-bg-secondary);
    border-color: var(--brand-border-color);
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(162, 12, 51, 0.25);
}

.page-item.active .page-link {
    z-index: 3;
    color: var(--brand-white);
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.page-item.disabled .page-link {
    color: var(--brand-text-muted);
    pointer-events: none;
    background-color: var(--brand-bg-primary);
    border-color: var(--brand-border-color);
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Brand Color Utilities */
.bg-brand-primary { background-color: var(--brand-primary) !important; }
.bg-brand-secondary { background-color: var(--brand-blue-primary) !important; }
.bg-brand-success { background-color: var(--brand-success) !important; }
.bg-brand-warning { background-color: var(--brand-warning) !important; }
.bg-brand-danger { background-color: var(--brand-danger) !important; }

.text-brand-primary { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-blue-primary) !important; }
.text-brand-success { color: var(--brand-success) !important; }
.text-brand-warning { color: var(--brand-warning) !important; }
.text-brand-danger { color: var(--brand-danger) !important; }

/* Border Utilities */
.border-brand-primary { border-color: var(--brand-primary) !important; }
.border-brand-secondary { border-color: var(--brand-blue-primary) !important; }

/* Display Utilities */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-grid { display: grid !important; }
.d-flex { display: flex !important; }

/* Position Utilities */
.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* Width and Height */
.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

/* Shadow Utilities */
.shadow-sm { box-shadow: var(--brand-shadow-sm) !important; }
.shadow { box-shadow: var(--brand-shadow-md) !important; }
.shadow-lg { box-shadow: var(--brand-shadow-lg) !important; }
.shadow-none { box-shadow: none !important; }