h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #dc3545;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========================================
   HOPS INSPIRE CUSTOM BOOTSTRAP THEME
   ======================================== */

/* CSS Custom Properties for your brand colors */
:root {
    --hops-primary: #64BA4B;
    --hops-primary-dark: #4a8a35;
    --hops-secondary: #BE8A60;
    --hops-secondary-dark: #a07249;
    --hops-sidebar: #6c757d;        /* Gray sidebar - TBD color */
    --hops-sidebar-dark: #5a6268;   /* Darker gray for hover states */
    --hops-light: #f8f9fa;
    --hops-dark: #2e2e2e;
}

/* Custom Background Classes */
.bg-hops-primary {
    background-color: var(--hops-primary) !important;
}

.bg-hops-secondary {
    background-color: var(--hops-secondary) !important;
}

.bg-hops-sidebar {
    background-color: var(--hops-sidebar) !important;
}

/* Custom Text Colors */
.text-hops-primary {
    color: var(--hops-primary) !important;
}

.text-hops-secondary {
    color: var(--hops-secondary) !important;
}

/* Navbar Bottom Tabs Positioning */
.navbar-bottom-tabs {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 1000; /* Ensure tabs are above other elements */
}

/* Custom Navigation Tabs */
.nav-tabs-custom {
    border: none;
    background: transparent;
}

.nav-tabs-custom .nav-link {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 4px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0;
    cursor: pointer;
    text-decoration: none;
}

.nav-tabs-custom .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.nav-tabs-custom .nav-link.active {
    background: white;
    color: var(--hops-primary);
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-decoration: none;
}

/* Navigation Tab Button Links - Make anchor links look like buttons */
.nav-tabs-custom a.nav-tab-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 4px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    user-select: none;
}

.nav-tabs-custom a.nav-tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.nav-tabs-custom a.nav-tab-button.active {
    background: white;
    color: var(--hops-primary);
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-decoration: none;
}

.nav-tabs-custom a.nav-tab-button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

/* Sidebar Container */
.sidebar-container {
    width: 280px;
    
    display: flex;
    flex-direction: column;
}

/* Sidebar Logo Section */
.sidebar-logo-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Don't shrink */
}

/* Sidebar Navigation Section */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.sidebar-nav ul.list-unstyled {
    margin: 0;
    padding: 0;
}

.sidebar-link {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    width: 100%;
    white-space: nowrap;

}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-left-color: white;
    font-weight: 600;
}

.sidebar-link.disabled {
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.sidebar-link.disabled:hover {
    background-color: transparent;
    border-left-color: transparent;
}

.sidebar-group {
    margin-bottom: 0;
}

.sidebar-group-header {
    padding: 12px 20px 8px 5px;    
    font-weight: 600;
    font-size: 1.0rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-submenu {
    margin-left: 0;
    margin-bottom: 1rem;
}

.sidebar-submenu .sidebar-link {
    padding-left: 10px;
    font-size: 0.8rem;
}


/* Ensure proper vertical stacking on mobile */
@media (max-width: 991.98px) {
    .sidebar-container .offcanvas-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .sidebar-logo-section {
        flex-shrink: 0;
        order: 1;
    }
    
    .current-company-indicator {
        flex-shrink: 0;
        order: 2;
    }
    
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        order: 3;
    }
    
    .mobile-company-selector {
        flex-shrink: 0;
        order: 4;
    }
}

/* Desktop sidebar styling */
@media (min-width: 992px) {
    .sidebar-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1040;
        display: flex;
        flex-direction: column;
    }
    .main-content-with-sidebar {
        margin-left: 280px;
    }
}

/* Custom Button Styles */
.btn-hops-primary {
    background-color: var(--hops-primary);
    border-color: var(--hops-primary);
    color: white;
}

.btn-hops-primary:hover {
    background-color: var(--hops-primary-dark);
    border-color: var(--hops-primary-dark);
    color: white;
}

.btn-hops-primary:disabled {
    background-color: rgba(100, 186, 75, 0.6);
    border-color: rgba(100, 186, 75, 0.6);
}

.btn-hops-secondary {
    background-color: var(--hops-secondary);
    border-color: var(--hops-secondary);
    color: white;
}

.btn-hops-secondary:hover {
    background-color: var(--hops-secondary-dark);
    border-color: var(--hops-secondary-dark);
    color: white;
}

/* Card Enhancements */
.card-hops {
    border: 1px solid rgba(100, 186, 75, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card-hops:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-hops .card-header {
    background-color: rgba(100, 186, 75, 0.1);
    border-bottom: 1px solid rgba(100, 186, 75, 0.2);
}

/* Dashboard Grid Consistency */
.dashboard-card {
    height: 100%;
    min-height: 200px;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .nav-tabs-custom {
        display: none !important;
    }
    
    .navbar-bottom-tabs {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .sidebar-nav {
        width: 280px;
        min-height: calc(100vh - 56px);
    }
}

/* Override Bootstrap primary color for consistency */
.btn-primary {
    background-color: var(--hops-primary);
    border-color: var(--hops-primary);
}

.btn-primary:hover {
    background-color: var(--hops-primary-dark);
    border-color: var(--hops-primary-dark);
}

.btn-primary:disabled {
    background-color: rgba(100, 186, 75, 0.6);
    border-color: var(--hops-primary);
}

.text-primary {
    color: var(--hops-primary) !important;
}

.border-primary {
    border-color: var(--hops-primary) !important;
}

/* Badge Customizations */
.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Legacy navigation icons support */
.navmenu-icons {
    display: flex;
    align-items: center;
    width: 100%;
    place-content: space-evenly;
}

/* Company Feature Links */
.company-feature-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 186, 75, 0.1);
}

.company-feature-link:hover {
    background-color: rgba(100, 186, 75, 0.05);
    border-color: rgba(100, 186, 75, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-feature-link:hover .bi-arrow-right-circle {
    transform: translateX(4px);
}

.company-feature-link .bi-arrow-right-circle {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.company-feature-link:hover strong {
    color: var(--hops-primary) !important;
}

/* Mobile Company Selector Styles */
.mobile-company-selector {
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    margin-bottom: 0;
}

.company-selector-header h6 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

.company-selector-list {
    margin-top: 0.5rem;
}

.company-selector-item {
    display: block;
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.company-selector-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.company-selector-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
    border-left: 3px solid white;
    padding-left: 9px;
}

/* Current Company Indicator */
.current-company-indicator {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    margin: 0;
}

.current-company-banner {
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.current-company-banner i {
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile layout order adjustments */
@media (max-width: 991.98px) {
    .sidebar-container .offcanvas-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .sidebar-logo-section {
        flex-shrink: 0;
        order: 1;
    }
    
    .current-company-indicator {
        flex-shrink: 0;
        order: 2;
    }
    
    .sidebar-nav {
        flex: 1;
        overflow-y: auto;
        order: 3;
    }
    
    .mobile-company-selector {
        flex-shrink: 0;
        order: 4;
    }
}

/* Dual Logo Styles */
.dual-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.dual-logo-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dual-logo-main {
    max-width: 100%;
    max-height: 101px; /* Half of original 203px height */
    width: auto;
    height: auto;
}

.dual-logo-company {
    max-width: 100%;
    max-height: 101px; /* Same height as main logo */
    width: auto;
    height: auto;
}

.dual-logo-divider {
    width: 2px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    border-radius: 1px;
}

/* Mini Company Selector Styles */
.mini-company-selector {
    gap: 0.75rem;
}

.mini-company-logo-link {
    display: inline-block;
    border-radius: 50%;
    padding: 2px;
    transition: box-shadow 0.2s;
}

.mini-company-logo-link.active,
.mini-company-logo-link:hover {
    box-shadow: 0 0 0 2px #007bff;
    background: #f8f9fa;
}

.mini-company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #dee2e6;
}

/* Make the mobile menu icon green using the brand color */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%2364BA4B' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.loginlink {
    color: white;
    text-decoration: none;
}
}