/* High Point Insight Brand Styles */
:root {
    /* Brand Colors */
    --hpi-dark-blue: #03172A;
    --hpi-blue: #0A4D8C;
    --hpi-cyan: #7BD1E6;
    --hpi-yellow: #FFD746;
    --hpi-white: #FFFFFF;
    --hpi-black: #000000;
    --hpi-light-grey: #F5F7FA;
    
    /* Bootstrap Overrides */
    --bs-primary: #0A4D8C;
    --bs-primary-rgb: 10, 77, 140;
    --bs-dark: #03172A;
    --bs-dark-rgb: 3, 23, 42;
    --bs-warning: #FFD746;
    --bs-warning-rgb: 255, 215, 70;
    --bs-info: #7BD1E6;
    --bs-info-rgb: 123, 209, 230;
    --bs-body-bg: #FFFFFF;
    --bs-body-color: #03172A;
}

/* Typography - Using system fallbacks since we can't load custom fonts easily */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Cambria', 'Georgia', serif; /* Fallback for Kalnia */
    font-weight: 600;
    color: var(--hpi-dark-blue);
    letter-spacing: -0.02em;
}

body, p, .btn, .form-control, .nav-link, td, th {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Arial', sans-serif; /* Fallback for IBM Plex Sans */
    color: var(--hpi-dark-blue);
}

/* Navigation Bar - Dark Blue dominant */
.navbar {
    background: linear-gradient(135deg, var(--hpi-dark-blue) 0%, #0A3660 100%) !important;
    box-shadow: 0 2px 8px rgba(3, 23, 42, 0.15);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--hpi-white) !important;
    letter-spacing: -0.01em;
}

.navbar-brand i {
    color: var(--hpi-cyan);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--hpi-cyan) !important;
    background: rgba(123, 209, 230, 0.1);
    border-radius: 6px;
}

/* Cards with subtle depth */
.card {
    border: 1px solid rgba(3, 23, 42, 0.08);
    box-shadow: 0 1px 3px rgba(3, 23, 42, 0.04);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(3, 23, 42, 0.08);
}

/* Buttons following brand hierarchy */
.btn-primary {
    background: var(--hpi-blue);
    border-color: var(--hpi-blue);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 0.6rem 1.5rem;
}

.btn-primary:hover {
    background: #063A6B;
    border-color: #063A6B;
}

.btn-success {
    background: var(--hpi-dark-blue);
    border-color: var(--hpi-dark-blue);
    font-weight: 600;
}

.btn-success:hover {
    background: #021019;
    border-color: #021019;
}

/* CTA button - Yellow accent */
.btn-warning, .btn-cta {
    background: var(--hpi-yellow);
    border-color: var(--hpi-yellow);
    color: var(--hpi-dark-blue) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.btn-warning:hover, .btn-cta:hover {
    background: #F5C800;
    border-color: #F5C800;
    color: var(--hpi-dark-blue) !important;
}

/* Forms with brand styling */
.form-control, .form-select {
    border-color: rgba(3, 23, 42, 0.2);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--hpi-blue);
    box-shadow: 0 0 0 0.2rem rgba(10, 77, 140, 0.15);
}

.form-label {
    color: var(--hpi-dark-blue);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

/* Tables */
.table thead th {
    background: var(--hpi-light-grey);
    color: var(--hpi-dark-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--hpi-blue);
}

.table-hover tbody tr:hover {
    background: rgba(123, 209, 230, 0.05);
}

/* Stats cards with brand colors */
.stat-card {
    background: linear-gradient(135deg, var(--hpi-dark-blue) 0%, var(--hpi-blue) 100%);
    color: var(--hpi-white);
    border: none;
}

.stat-card .fs-3 {
    color: var(--hpi-cyan);
    font-weight: 700;
}

/* Badge styles */
.badge {
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.35rem 0.75rem;
}

.badge-recurring, .badge-staffing {
    background: var(--hpi-blue);
    color: white;
}

.badge-carried {
    background: var(--hpi-cyan);
    color: var(--hpi-dark-blue);
}

.badge-raw {
    background: var(--hpi-light-grey);
    color: var(--hpi-dark-blue);
}

/* Login page branding */
.login-card {
    border-top: 4px solid var(--hpi-blue);
    box-shadow: 0 8px 24px rgba(3, 23, 42, 0.1);
}

.login-card h5 {
    color: var(--hpi-dark-blue);
    font-weight: 700;
}

/* Dashboard welcome */
.alert-info {
    background: linear-gradient(135deg, rgba(123, 209, 230, 0.1) 0%, rgba(123, 209, 230, 0.05) 100%);
    border-left: 4px solid var(--hpi-cyan);
    color: var(--hpi-dark-blue);
}

/* Project cards */
.project-card {
    border-left: 4px solid var(--hpi-blue);
    transition: all 0.2s;
}

.project-card:hover {
    border-left-color: var(--hpi-cyan);
    transform: translateX(2px);
}

/* Dropdown menus */
.dropdown-menu {
    border: 1px solid rgba(3, 23, 42, 0.1);
    box-shadow: 0 4px 12px rgba(3, 23, 42, 0.08);
}

.dropdown-item:hover {
    background: rgba(123, 209, 230, 0.1);
    color: var(--hpi-dark-blue);
}

/* Footer */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Brand footer (optional) */
.brand-footer {
    background: var(--hpi-dark-blue);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
    font-size: 0.875rem;
}

/* Invoice-specific styling */
.invoice-header {
    border-bottom: 3px solid var(--hpi-blue);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.invoice-total {
    background: var(--hpi-dark-blue);
    color: var(--hpi-white);
    padding: 1rem;
    border-radius: 6px;
}

.invoice-total .fs-5 {
    color: var(--hpi-yellow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .form-control {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}