/**
 * Light Theme Border Fix
 * Adds dark blue borders to containers and boxes for visual consistency
 * Applied when body has data-bs-theme="light"
 */

/* Card borders for light theme */
body[data-bs-theme="light"] .card {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Container borders for light theme */
body[data-bs-theme="light"] .container,
body[data-bs-theme="light"] .container-fluid {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

/* Modal borders for light theme */
body[data-bs-theme="light"] .modal-content {
    border: 2px solid #0d6efd !important;
    border-radius: 0.5rem !important;
}

/* Alert borders for light theme */
body[data-bs-theme="light"] .alert {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Form group borders for light theme */
body[data-bs-theme="light"] .form-group,
body[data-bs-theme="light"] .mb-3,
body[data-bs-theme="light"] .mb-4 {
    border: 1px solid #e3f2fd;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-bottom: 1rem !important;
}

/* Navigation borders for light theme */
body[data-bs-theme="light"] .navbar {
    border-bottom: 2px solid #0d6efd !important;
}

/* Header/Navbar styling for light theme - better visibility */
body[data-bs-theme="light"] .navbar-dark {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #0d6efd !important;
}

/* Nuclear overrides for navbar brand visibility in light theme */
body[data-bs-theme="light"] .navbar .navbar-brand,
body[data-bs-theme="light"] .navbar-dark .navbar-brand,
body[data-bs-theme="light"] .bg-dark .navbar-brand,
body[data-bs-theme="light"] .navbar-brand {
    color: #212529 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

body[data-bs-theme="light"] .navbar .navbar-brand:hover,
body[data-bs-theme="light"] .navbar-brand:hover {
    color: #0d6efd !important;
}

/* Additional brand text styling */
body[data-bs-theme="light"] a.navbar-brand {
    color: #212529 !important;
    text-decoration: none !important;
}

body[data-bs-theme="light"] a.navbar-brand:visited {
    color: #212529 !important;
}

body[data-bs-theme="light"] .navbar-dark .navbar-toggler {
    border-color: #0d6efd !important;
    background-color: #fff !important;
}

body[data-bs-theme="light"] .navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link {
    color: #212529 !important;
    font-weight: 500 !important;
}

body[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link:hover,
body[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link:focus {
    color: #0d6efd !important;
    background-color: #e3f2fd !important;
    border-radius: 0.25rem !important;
}

body[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link.active {
    color: #0d6efd !important;
    background-color: #e3f2fd !important;
    border-radius: 0.25rem !important;
}

/* Navigation styles moved to navbar-button-consistency.css */

/* Dropdown borders for light theme */
body[data-bs-theme="light"] .dropdown-menu {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Dropdown menu item borders for light theme */
body[data-bs-theme="light"] .dropdown-item {
    border: 1px solid #e3f2fd !important;
    border-radius: 0.25rem !important;
    margin: 2px !important;
    padding: 0.375rem 1rem !important;
}

body[data-bs-theme="light"] .dropdown-item:hover,
body[data-bs-theme="light"] .dropdown-item:focus {
    border-color: #0d6efd !important;
    background-color: #e3f2fd !important;
}

body[data-bs-theme="light"] .dropdown-item.active {
    border-color: #0d6efd !important;
    background-color: #0d6efd !important;
    color: #fff !important;
}

/* Dropdown divider enhanced styling */
body[data-bs-theme="light"] .dropdown-divider {
    border-top: 1px solid #0d6efd !important;
    margin: 0.25rem 0 !important;
}

/* Table borders for light theme */
body[data-bs-theme="light"] .table {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Button group borders for light theme */
body[data-bs-theme="light"] .btn-group {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Pagination borders for light theme */
body[data-bs-theme="light"] .pagination {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem !important;
}

/* List group borders for light theme */
body[data-bs-theme="light"] .list-group {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Badge borders for light theme */
body[data-bs-theme="light"] .badge {
    border: 1px solid #0d6efd !important;
}

/* Progress bar container borders for light theme */
body[data-bs-theme="light"] .progress {
    border: 1px solid #0d6efd !important;
}

/* Home page button styles moved to home-button-consistency.css */
}

/* Accordion borders for light theme */
body[data-bs-theme="light"] .accordion {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Breadcrumb borders for light theme */
body[data-bs-theme="light"] .breadcrumb {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
    padding: 0.75rem 1rem !important;
}

/* Card header and footer enhanced borders */
body[data-bs-theme="light"] .card-header {
    border-bottom: 1px solid #0d6efd !important;
    background-color: #f8f9fa !important;
}

body[data-bs-theme="light"] .card-footer {
    border-top: 1px solid #0d6efd !important;
    background-color: #f8f9fa !important;
}

/* Tab content borders */
body[data-bs-theme="light"] .tab-content {
    border: 1px solid #0d6efd !important;
    border-radius: 0 0.375rem 0.375rem 0.375rem !important;
    padding: 1rem !important;
}

/* Nav tabs enhanced styling */
body[data-bs-theme="light"] .nav-tabs {
    border-bottom: 2px solid #0d6efd !important;
}

body[data-bs-theme="light"] .nav-tabs .nav-link.active {
    border: 1px solid #0d6efd !important;
    border-bottom-color: transparent !important;
}

/* Offcanvas borders */
body[data-bs-theme="light"] .offcanvas {
    border: 2px solid #0d6efd !important;
}

/* Carousel borders */
body[data-bs-theme="light"] .carousel {
    border: 1px solid #0d6efd !important;
    border-radius: 0.375rem !important;
}

/* Tooltip borders */
body[data-bs-theme="light"] .tooltip .tooltip-inner {
    border: 1px solid #0d6efd !important;
}

/* Popover borders */
body[data-bs-theme="light"] .popover {
    border: 1px solid #0d6efd !important;
}