/**
 * Hospicore Brand Identity - Flat Colors (No Gradients)
 * Primary: #8BC240 (Green) | Secondary: #34B0E0 (Blue) | Dark: #3E5A5A (Teal)
 */

:root {
    /* Primary - Green (flat) */
    --hospicore-primary: #8BC240;
    --hospicore-primary-dark: #76a836;
    --hospicore-primary-light: #a3d65c;
    
    /* Secondary - Blue (flat) */
    --hospicore-secondary: #34B0E0;
    --hospicore-secondary-dark: #2a8fb8;
    --hospicore-secondary-light: #5bc4f0;
    
    /* Dark - Teal */
    --hospicore-dark: #3E5A5A;
    --hospicore-dark-text: #3E4E4E;
    
    /* Neutrals */
    --hospicore-bg: #F8FAFC;
    --hospicore-bg-dark: #2d3d3d;
    
    /* Bootstrap 5 override */
    --bs-primary: #8BC240;
    --bs-primary-rgb: 139, 194, 64;
    --bs-primary-text-emphasis: #76a836;
    --bs-primary-bg-subtle: rgba(139, 194, 64, 0.15);
    --bs-primary-border-subtle: rgba(139, 194, 64, 0.3);
    --bs-link-color: #34B0E0;
    --bs-link-color-rgb: 52, 176, 224;
    --bs-link-hover-color: #2a8fb8;
    --bs-link-hover-color-rgb: 42, 143, 184;
}

.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #8BC240 !important;
    border-color: #8BC240 !important;
    background-image: none !important;
}
.btn-outline-primary {
    color: #8BC240 !important;
    border-color: #8BC240 !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: rgba(139, 194, 64, 0.12) !important;
    border-color: #8BC240 !important;
    color: #76a836 !important;
}
.nav-link:hover, .nav-link:focus, a.text-primary, .text-primary {
    color: #8BC240 !important;
}
.form-control:focus, .form-select:focus {
    border-color: #8BC240 !important;
    box-shadow: 0 0 0 0.25rem rgba(139, 194, 64, 0.25) !important;
}
.form-check-input:checked {
    background-color: #8BC240 !important;
    border-color: #8BC240 !important;
}
.page-link {
    color: #8BC240 !important;
}
.page-link:hover {
    background-color: rgba(139, 194, 64, 0.12) !important;
    border-color: #8BC240 !important;
    color: #76a836 !important;
}
.page-item.active .page-link {
    background-color: #8BC240 !important;
    border-color: #8BC240 !important;
}
.dropdown-item:active, .dropdown-item:hover {
    background-color: rgba(139, 194, 64, 0.1) !important;
}
.badge.bg-primary {
    background-color: #8BC240 !important;
}
.alert-primary {
    background-color: rgba(139, 194, 64, 0.15) !important;
    border-color: rgba(139, 194, 64, 0.3) !important;
    color: #76a836 !important;
}
.progress-bar, .bg-primary {
    background-color: #8BC240 !important;
}

/* Unified Public Navbar */
.public-navbar-wrap {
    padding: 0.75rem 1rem;
    background: var(--hospicore-bg, #F8FAFC);
    z-index: 1030;
}
.public-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.public-navbar .navbar-brand {
    color: var(--hospicore-primary) !important;
    font-weight: 700;
}
.public-navbar .nav-link {
    color: #1e293b !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.public-navbar .nav-link i { font-size: 1.05em; opacity: 0.9; }
.public-navbar .nav-link:hover {
    color: var(--hospicore-primary) !important;
    background: rgba(139, 194, 64, 0.12);
}
.public-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.public-account-btn {
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.82rem;
    border: 1px solid rgba(52, 176, 224, 0.4);
    color: #1a7ba8;
    background: rgba(52, 176, 224, 0.06);
    transition: all 0.25s ease;
}
.public-account-btn:hover {
    background: rgba(52, 176, 224, 0.12);
    border-color: #34B0E0;
    color: #2a8fb8;
}
.public-account-dropdown {
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 16px rgba(52, 176, 224, 0.12);
    border: 1px solid rgba(52, 176, 224, 0.15);
    padding: 0.5rem;
    min-width: 220px;
}
.public-account-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.public-account-dropdown .dropdown-item .bi {
    font-size: 1.15rem;
    color: #34B0E0;
    opacity: 0.95;
}
.public-account-dropdown .dropdown-item:hover {
    background: rgba(52, 176, 224, 0.08);
    color: #1a7ba8;
}
.public-account-dropdown .dropdown-item.text-muted .bi { color: #94a3b8; }
.public-account-dropdown .dropdown-item.text-muted:hover { color: #64748b !important; }

/* Logo display - Hospicore shield brand */
.hospicore-logo-component .hospicore-logo-img,
.public-navbar .hospicore-logo-img,
.navbar-brand img.hospicore-logo-img {
    height: var(--logo-height, 48px);
    width: auto;
    max-width: var(--logo-width, 200px);
    object-fit: contain;
    object-position: left center;
    display: block;
}
[dir="rtl"] .hospicore-logo-component .hospicore-logo-img,
[dir="rtl"] .public-navbar .hospicore-logo-img { object-position: right center; }

/* Hero/Footer/Login - white logos on dark */
.app-login-logo img,
.w-hero-logo img,
.w-footer-logo img,
.public-footer-logo img,
.hospicore-logo-circle img {
    object-fit: contain;
    object-position: center;
    max-height: 100%;
}

/* Force no gradients anywhere */
.btn, .btn-primary, .btn-secondary, .btn-success, .btn-outline-primary,
.btn-lg, .btn-sm, .tr-btn-search, .plan-btn, .plan-btn-primary, .plan-btn-outline,
.public-account-btn {
    background-image: none !important;
}
