/* Custom CSS for Playbook */

/* Inter font setup - only for table bodies and numeric data */
/* Removed global :root font-family to keep original interface fonts */

/* NOTE: Dark mode styles have been moved to custom_dark.css for better organization */

/* Datatable sorter - fix missing triangle borders */
.datatable-sorter::before {
    border-top: 4px solid #69707a;
}

.datatable-sorter::after {
    border-bottom: 4px solid #69707a;
}

/* Override focus styling to prevent size changes in drawer */
.right-drawer .form-control:focus,
.right-drawer .form-select:focus,
.right-drawer textarea:focus {
    box-shadow: none !important;
    border-color: #6eabc2 !important; /* Primary color blue */
    outline: 0;
}

/* Fix horizontal overflow in drawer caused by Bootstrap row margins */
.right-drawer .row {
    margin-left: 0;
    margin-right: 0;
}

.right-drawer .tab-content {
    overflow-x: hidden;
}

/* Level Progress Bar - Skill Score Bar */
.level-progress-container {
    position: relative;
    padding-bottom: 0;
    margin-bottom: 20px;
    transition: padding-bottom 0.3s ease 0.5s;
}

.level-progress-container:hover {
    padding-bottom: 45px;
}

.level-progress {
    position: relative;
    height: 50px;
    border-radius: 0.375rem; /* Bootstrap border-radius */
    overflow: visible;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Bootstrap shadow-sm */
}

.level-progress .current-badge {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bs-body-bg, #fff); /* Bootstrap background */
    color: var(--bs-body-color, #212832); /* Bootstrap text color */
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem; /* Bootstrap rounded */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* Bootstrap shadow */
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid var(--bs-border-color, #d4dae3); /* Bootstrap border */
}

.level-markers {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease 0.5s;
    pointer-events: none;
}

.level-progress-container:hover .level-markers {
    opacity: 1;
    pointer-events: auto;
}

.level-marker {
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--bs-body-bg, #fff); /* Bootstrap background */
    color: var(--bs-body-color, #212832); /* Bootstrap text color */
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem; /* Bootstrap rounded */
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1); /* Bootstrap shadow-sm */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color, #d4dae3); /* Bootstrap border */
}

/* Specific widths per level - 7 markers with 6 gaps of 4px = 24px total */
.level-marker-1 {
    flex: 0 0 calc((100% - 24px) * 0.4);
}

.level-marker-2 {
    flex: 0 0 calc((100% - 24px) * 0.1);
}

.level-marker-3 {
    flex: 0 0 calc((100% - 24px) * 0.1);
}

.level-marker-4 {
    flex: 0 0 calc((100% - 24px) * 0.1);
}

.level-marker-5 {
    flex: 0 0 calc((100% - 24px) * 0.1);
}

.level-marker-6 {
    flex: 0 0 calc((100% - 24px) * 0.1);
}

.level-marker-7 {
    flex: 0 0 calc((100% - 24px) * 0.1);
}

/* Floating/Sticky Alert for Questionnaire */
#globalAlertPlaceholder .alert {
    position: fixed;
    top: 80px; /* Below the navigation bar */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050; /* Above most content but below modals */
    min-width: 300px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-bottom: 0;
}

/* Ensure alerts are visible on mobile */
@media (max-width: 768px) {
    #globalAlertPlaceholder .alert {
        top: 70px;
        max-width: 95vw;
        font-size: 0.875rem;
    }
}

/* AI Scan Wizard Navigation Responsive Layout */
.nav-wizard .wizard-step-text {
    display: flex;
    flex-direction: column;
    text-align: center;
    min-width: 0; /* Allow text to wrap */
}

/* Compact layout for 5 dimensions row when space is limited */
@media (max-width: 1400px) and (min-width: 992px) {
    .nav-wizard .d-flex.flex-xl-row .nav-link {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
        min-width: 120px;
        max-width: 160px;
    }
    
    .nav-wizard .d-flex.flex-xl-row .wizard-step-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .nav-wizard .d-flex.flex-xl-row .wizard-step-text-name {
        font-size: 0.875rem;
        font-weight: 600;
    }
    
    .nav-wizard .d-flex.flex-xl-row .wizard-step-text-details {
        font-size: 0.75rem;
        opacity: 0.8;
        line-height: 1.2;
    }
}

/* Medium layout - when items stack but should have horizontal layout */
@media (max-width: 1199px) and (min-width: 992px) {
    .nav-wizard .d-flex.flex-xl-row {
        flex-direction: column !important;
    }
    
    .nav-wizard .d-flex.flex-xl-row .nav-link {
        flex-direction: row !important;
        text-align: left !important;
        display: flex !important;
        align-items: center;
        max-width: none;
        min-width: auto;
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-wizard .d-flex.flex-xl-row .wizard-step-icon {
        margin-right: 1rem;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .nav-wizard .d-flex.flex-xl-row .wizard-step-text {
        text-align: left !important;
        flex-direction: column;
        display: flex;
    }
}

/* Mobile layout - stack vertically */
@media (max-width: 991px) {
    .nav-wizard .d-flex.flex-xl-row {
        flex-direction: column !important;
    }
    
    .nav-wizard .nav-link {
        margin-bottom: 0.5rem;
        flex-direction: row !important;
        text-align: left;
        display: flex !important;
        align-items: center;
    }
    
    .nav-wizard .wizard-step-icon {
        margin-right: 1rem;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    
    .nav-wizard .wizard-step-text {
        text-align: left;
        flex-direction: column;
        display: flex;
    }
}

/* Button icon styling - only apply within main content area */
/* Commented out - using SB Admin Pro default .btn-icon styling instead
main .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    overflow: visible !important;
}

main .btn-icon.btn-sm {
    width: 1.875rem;
    height: 1.875rem;
    font-size: 0.875rem;
}

main .btn-icon.btn-lg {
    width: 3rem;
    height: 3rem;
    font-size: 1.125rem;
}

main .btn-icon i {
    font-size: inherit;
}

main .btn-sm .btn-icon i {
    font-size: 0.875rem;
}
*/

/* Avatar sizing - only for content area, not header */
main .avatar {
    width: 2.5rem;
    height: 2.5rem;
}

main .avatar-sm {
    width: 1.875rem;
    height: 1.875rem;
}

main .avatar-sm .avatar-img {
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
}

main .avatar .avatar-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

/* Table button improvements within main */
main .table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

main .table .btn-sm i {
    font-size: 0.875rem;
}

/* Extra large avatar button - keep circular for profile photos */
.topnav .btn-icon.btn-xxl {
    height: 4rem !important;        /* 64px */
    width: 4rem !important;
    border-radius: 100%;
    position: relative;
    z-index: 1050;                  /* Above content */
    margin-bottom: -1.5rem;         /* Extends below header */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden !important;    /* Keep hidden for profile photos */
    padding: 0 !important;          /* No padding for profile photos */
}

.topnav .btn-icon.btn-xxl:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.topnav .btn-icon.btn-xxl img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

/* Dropdown user image consistency */
.dropdown-user .dropdown-menu .dropdown-header .dropdown-user-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

/* Sidenav menu collapse styling */
.sidenav-collapse-arrow {
    transition: transform 0.15s ease;
}

.nav-link[aria-expanded="true"] .sidenav-collapse-arrow {
    transform: rotate(90deg);
}

.nav-link[aria-expanded="false"] .sidenav-collapse-arrow {
    transform: rotate(0deg);
}

/* Sidenav nested menu styling */
.sidenav-menu-nested {
    margin-left: 1rem;
}

.sidenav-menu-nested .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Sidenav icon styling */
.sidenav .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

.sidenav .nav-link.active .nav-link-icon {
    color: #fff;
}

/* Sidenav menu animation - specific to sidenav only */
.sidenav .collapse {
    transition: height 0.35s ease;
}

.sidenav .collapsing {
    transition: height 0.35s ease;
}

/* Module dropdown styling */
.navbar-brand .dropdown-toggle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0.5rem 0.75rem;
}

.navbar-brand .dropdown-toggle:hover {
    color: var(--bs-primary);
}

.navbar-brand .no-dropdown-toggle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0.5rem 0.75rem;
}

.navbar-brand .dropdown-menu {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-left: 1rem;
}

.navbar-brand .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.navbar-brand .dropdown-item.active {
    background-color: var(--bs-primary);
    color: white;
}

.navbar-brand .dropdown-item i {
    width: 16px;
    height: 16px;
}

/* Dashboard card background colors */
/* Removed duplicate dashboard styles - using the ones at the bottom */

/* Inter font only for DataTables tbody - keeping original fonts for headers and other tables */
table.dataTable tbody,
.dataTables_wrapper table.dataTable tbody {
    font-family: 'Inter', sans-serif !important;
}

@supports (font-variation-settings: normal) {
    table.dataTable tbody,
    .dataTables_wrapper table.dataTable tbody {
        font-family: 'Inter var', sans-serif !important;
    }
}

/* DataTables compact styling to match SB Admin Pro demo */
.table-responsive .table {
    font-size: 0.875rem;
}

.table-responsive .table th {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #69707a;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e0e5ec;
    background-color: #f8f9fa;
}

.table-responsive .table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    font-size: 0.875rem;
}

/* Add padding to last cell to prevent buttons touching edge on small screens */
.table-responsive .table td:last-child,
.table-responsive .table th:last-child {
    padding-right: 1rem;
}

/* Ensure table-responsive has proper padding on mobile */
.card-body.p-0 .table-responsive {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* But remove the padding on larger screens where horizontal scroll isn't needed */
@media (min-width: 768px) {
    .card-body.p-0 .table-responsive {
        padding-right: 0;
        padding-left: 0;
    }
}

/* DataTables controls styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Compact action buttons for DataTables */
.btn-datatable.btn-icon.btn-transparent-dark {
    height: 24px !important;
    width: 24px !important;
    font-size: 0.75rem;
    border-radius: 0.25rem !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background-color: transparent;
    color: #69707a;
    transition: all 0.15s ease-in-out;
}

.btn-datatable.btn-icon.btn-transparent-dark:hover {
    background-color: #e0e5ec;
    color: #4a515b;
}

/* Compact badges in tables */
.table .badge {
    font-size: 0.6875rem;
    padding: 0.2em 0.4em;
    font-weight: 500;
}

/* Subtle table striping */
.table-striped tbody tr:nth-of-type(odd) td {
    background-color: rgba(0, 0, 0, 0.015);
}

/* Table hover effect */
.table-hover tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.035);
}

/* Numeric value alignment in tables - removed conflicting rules */

/* DataTables dropdown fixes for overlapping text and arrow */
.dataTables_length select {
    min-width: 70px !important;
    width: auto !important;
    padding-right: 30px !important;
    padding-left: 8px !important;
}

/* Proper spacing for dropdown arrow */
.dataTables_length .form-select {
    min-width: 70px !important;
    width: auto !important;
    padding-right: 30px !important;
    background-position: right 8px center !important;
}

/* DataTables controls margins */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #69707a;
}

/* DataTables styling improvements */
.dataTables_length select {
    min-width: 70px;
    padding-right: 30px;
    background-position: right 8px center;
}

.dataTables_paginate .paginate_button {
    margin-left: 0 !important;
}

.dataTables_paginate .paginate_button:first-child {
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}

.dataTables_paginate .paginate_button:last-child {
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

.dataTables_paginate .paginate_button:not(:first-child):not(:last-child) {
    border-radius: 0;
}

/* Tabular numbers for consistent numeric alignment */
.tabular-nums {
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

/* Inter font for tabular numbers in DataTables tbody only */
table.dataTable tbody .tabular-nums,
table.dataTable tbody td .tabular-nums,
table.dataTable tbody td.text-end .tabular-nums,
table.dataTable tbody td.text-center .tabular-nums,
.dataTables_wrapper table.dataTable tbody .tabular-nums {
    font-family: 'Inter', sans-serif !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

@supports (font-variation-settings: normal) {
    table.dataTable tbody .tabular-nums,
    table.dataTable tbody td .tabular-nums,
    table.dataTable tbody td.text-end .tabular-nums,
    table.dataTable tbody td.text-center .tabular-nums,
    .dataTables_wrapper table.dataTable tbody .tabular-nums {
        font-family: 'Inter var', sans-serif !important;
    }
}

/* Span elements with tabular-nums in DataTables tbody only */
table.dataTable tbody td span.tabular-nums,
table.dataTable tbody td.text-end span.tabular-nums,
table.dataTable tbody td.text-center span.tabular-nums,
.dataTables_wrapper table.dataTable tbody td span.tabular-nums {
    font-family: 'Inter', sans-serif !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

@supports (font-variation-settings: normal) {
    table.dataTable tbody td span.tabular-nums,
    table.dataTable tbody td.text-end span.tabular-nums,
    table.dataTable tbody td.text-center span.tabular-nums,
    .dataTables_wrapper table.dataTable tbody td span.tabular-nums {
        font-family: 'Inter var', sans-serif !important;
    }
}

/* Removed alternative/test classes - keeping only the working Inter solution */

/* Dashboard specific styles */
.dashboard .bg-red {
    background-color: #dc3545 !important;
}

.dashboard .bg-orange {
    background-color: #fd7e14 !important;
}

.dashboard .bg-green {
    background-color: #198754 !important;
}

/* Removed duplicate avatar rule - using the one at the top */

/* Sidenav specific collapse styles */
.sidenav .collapse:not(.show) {
    display: none;
}

.sidenav .collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Knowledge Base List Items - Subtle border between items */

.list-group-item:not(:last-child) {
    border-bottom: 1px solid #dee2e6 !important;
}

/* Feather Icons Vertical Alignment Fixes */
/* Correct vertical alignment of Feather icons with text */
.feather, [data-feather] {
    vertical-align: text-bottom;
}

/* Specific correction for page header icons - use middle for large titles */
.page-header-icon {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Correction for small icons next to text */
.me-1[data-feather] {
    vertical-align: text-bottom;
} 

/* Right Drawer Component - Reusable for all pages */
.main-content {
    transition: margin-right 0.25s ease-in-out;
}

.right-drawer {
    position: fixed;
    top: 0;
    right: -575px;
    width: 575px;
    height: 100vh;
    background: #fff;
    box-shadow: -0.15rem 0 1.75rem 0 rgba(33, 40, 50, 0.15);
    transition: right 0.25s ease-in-out;
    z-index: 1055;
    display: flex;
    flex-direction: column;
}

.right-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 40, 50, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive behavior for right drawer */
@media (min-width: 1200px) {
    .main-content.drawer-open {
        margin-right: 575px;
    }
}

@media (max-width: 1199px) {
    .right-drawer {
        width: 100%;
        right: -100%;
    }
    
    .main-content.drawer-open {
        margin-right: 0;
    }
}

/* Sidebar toggle button - primary color icon on hover */
#sidebarToggle:hover svg,
#sidebarToggle:focus svg {
    stroke: var(--bs-primary) !important;
}

/* Ensure the button itself has white background on hover */
#sidebarToggle.btn-outline-light:hover,
#sidebarToggle.btn-outline-light:focus {
    background-color: #fff;
    border-color: #fff;
}

/* Module name in navbar - white text on primary background */
.navbar-dark .navbar-brand .btn-transparent-dark {
    color: #fff !important;
}

.navbar-dark .navbar-brand .btn-transparent-dark:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-brand .btn-transparent-dark.dropdown-toggle::after {
    border-top-color: #fff;
}

/* Sidebar footer - primary background with light text */
.sidenav-footer {
    background-color: var(--bs-primary) !important;
}

.sidenav-footer .sidenav-footer-subtitle,
.sidenav-footer .sidenav-footer-title {
    color: #fff !important;
}

.sidenav-footer .sidenav-footer-subtitle {
    opacity: 0.8;
}

/* Help Offcanvas Tab */
.help-tab {
    position: fixed;
    top: 100px;
    right: 0;
    width: 55px;
    height: 70px;
    background: var(--bs-primary);
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
}

.help-tab:hover {
    width: 60px;
    background: var(--bs-primary);
}

.help-tab i,
.help-tab svg {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 2rem !important;
    width: 2rem !important;
    height: 2rem !important;
}

/* Help Offcanvas styling */
#helpOffcanvas {
    width: 400px;
}

#helpOffcanvas .offcanvas-header {
    background: var(--bs-primary);
    color: white !important;
}

#helpOffcanvas .offcanvas-header .offcanvas-title {
    color: white !important;
}

#helpOffcanvas .offcanvas-header i,
#helpOffcanvas .offcanvas-header svg {
    color: white !important;
    font-size: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

#helpOffcanvas .btn-close {
    filter: invert(1);
}

#helpOffcanvas .offcanvas-body {
    padding: 1.5rem;
}

#helpOffcanvas .offcanvas-body i.fa-3x,
#helpOffcanvas .offcanvas-body svg.fa-3x {
    font-size: 3rem !important;
    width: 3rem !important;
    height: 3rem !important;
}

/* Help content formatting */
/* Help block container */
.help-block {
    margin-bottom: 1.5rem;
}

.help-block:last-child {
    margin-bottom: 0;
}

/* Help content styling */
.help-content h1, .help-content h2, .help-content h3, .help-content h4,
.help-block h1, .help-block h2, .help-block h3, .help-block h4 {
    color: var(--bs-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.help-content h1:first-child,
.help-content h2:first-child,
.help-content h3:first-child,
.help-content h4:first-child,
.help-block h1:first-child,
.help-block h2:first-child,
.help-block h3:first-child,
.help-block h4:first-child {
    margin-top: 0;
}

.help-content h4, .help-block h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.help-content p, .help-block p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.help-content ul, .help-content ol,
.help-block ul, .help-block ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.help-content li, .help-block li {
    margin-bottom: 0.5rem;
}

.help-content strong, .help-block strong {
    color: var(--bs-dark);
    font-weight: 600;
}

/* Separator between help blocks */
.help-content hr, .help-block hr {
    border-color: var(--bs-gray-300);
    opacity: 0.5;
}

/* Responsive help tab and offcanvas */
@media (max-width: 768px) {
    #helpOffcanvas {
        width: 100%;
    }
    
    .help-tab {
        width: 45px;
        height: 60px;
        top: 100px;
    }
    
    .help-tab i,
    .help-tab svg {
        font-size: 1.75rem !important;
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
}

/* Dark Mode Toggle Icon Styling */
#darkModeToggle i,
#darkModeToggle svg {
    font-size: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

#darkModeIcon {
    font-size: 1.25rem !important;
    transition: color 0.15s ease;
}

/* Help Toggle Button Styling */
#helpToggle {
    transition: all 0.15s ease;
}

#helpToggle i,
#helpToggle svg {
    font-size: 1.25rem !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
}

/* Ensure icon changes are immediate */
#darkModeIcon.fa-sun,
#darkModeIcon.fa-sun-bright,
#darkModeIcon.fa-moon {
    display: inline-block;
}

/* Cursor pointer utility class */
.cursor-pointer {
    cursor: pointer;
}

/* Tab Navigation - Primary Color Borders */
.nav-tabs {
    --bs-nav-tabs-border-color: var(--bs-primary);
    --bs-nav-tabs-link-hover-border-color: var(--bs-primary) var(--bs-primary) var(--bs-primary);
    --bs-nav-tabs-link-active-border-color: var(--bs-primary) var(--bs-primary) var(--bs-body-bg);
}