/* ==========================================================================
   Therapedia Center - Core Application Master Stylesheet (public/assets/css/style.css)
   ========================================================================== */

/* 1. Touch & Responsive Table Scrolling */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: auto !important;
}

/* 2. DataTables Padding, Alignment & Control Overrides */
.panel-body {
    padding: 20px 24px !important;
}

.dataTables_wrapper {
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px !important;
    padding: 4px 6px !important;
}

.dataTables_wrapper .dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    min-width: 70px !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: 36px !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    text-align: left !important;
    background-position: right 8px center !important;
    box-sizing: border-box !important;
    margin: 0 6px !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 14px !important;
    padding: 6px 6px !important;
}

.dataTables_wrapper .table-responsive {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 0 2px !important;
}

/* 3. Header & Language Selector Dropdown Overrides */
#header, .app-header {
    overflow: visible !important;
}

#header .navbar-nav,
.app-header .navbar-nav {
    overflow: visible !important;
}

#header .navbar-item,
.app-header .navbar-item {
    position: relative !important;
    overflow: visible !important;
}

#header .dropdown-menu,
.app-header .dropdown-menu,
.dropdown-menu-lang {
    position: absolute !important;
    top: 100% !important;
    margin-top: 10px !important;
    z-index: 1060 !important;
}

/* Mobile responsive alignment for Notification Dropdown */
#pendaftaran-notification-bell-dropdown {
    position: relative !important;
}

#pendaftaran-notification-bell-dropdown .dropdown-menu {
    min-width: 320px !important;
    width: 320px !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 575.98px) {
    #pendaftaran-notification-bell-dropdown .dropdown-menu {
        right: -40px !important;
        left: auto !important;
        width: 300px !important;
        min-width: 280px !important;
        max-width: calc(100vw - 20px) !important;
    }
}

.dropdown-menu-lang {
    min-width: 220px !important;
    padding: 8px 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.dropdown-menu-lang .dropdown-item {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background 0.15s ease !important;
}

.dropdown-menu-lang .dropdown-item:hover {
    background: rgba(0, 122, 255, 0.08) !important;
    color: #007aff !important;
}

.dropdown-menu-lang .select-badge {
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 122, 255, 0.12) !important;
    color: #007aff !important;
    margin-left: 14px !important;
    flex-shrink: 0 !important;
}

/* 4. Global Readonly & Disabled Form Fields Grey Background Styling */
input[readonly]:not([type="radio"]):not([type="checkbox"]),
input[disabled],
input:disabled,
input:read-only:not([type="radio"]):not([type="checkbox"]),
textarea[readonly],
textarea[disabled],
textarea:disabled,
textarea:read-only,
select[disabled],
select:disabled,
.form-control[readonly],
.form-control[disabled],
.form-control:disabled,
.form-control:read-only,
.form-select[disabled],
.form-select:disabled,
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #e9ecef !important;
    color: #495057 !important;
    cursor: not-allowed !important;
    border-color: #ced4da !important;
    opacity: 0.9 !important;
}

/* Explicit Enabled Select, Option, Radio & Checkbox Styling */
select:not([disabled]):not(:disabled),
.form-select:not([disabled]):not(:disabled) {
    background-color: #ffffff !important;
    color: #1d1d1f !important;
}

select:not([disabled]):not(:disabled) option,
.form-select:not([disabled]):not(:disabled) option {
    background-color: #ffffff !important;
    color: #1d1d1f !important;
}

input[type="radio"]:not([disabled]):not(:disabled),
input[type="checkbox"]:not([disabled]):not(:disabled),
.form-check-input:not([disabled]):not(:disabled) {
    background-color: #ffffff !important;
    cursor: pointer !important;
}

[data-bs-theme="dark"] input[readonly]:not([type="radio"]):not([type="checkbox"]),
[data-bs-theme="dark"] input[disabled],
[data-bs-theme="dark"] input:disabled,
[data-bs-theme="dark"] input:read-only:not([type="radio"]):not([type="checkbox"]),
[data-bs-theme="dark"] textarea[readonly],
[data-bs-theme="dark"] textarea[disabled],
[data-bs-theme="dark"] textarea:disabled,
[data-bs-theme="dark"] textarea:read-only,
[data-bs-theme="dark"] select[disabled],
[data-bs-theme="dark"] select:disabled,
[data-bs-theme="dark"] .form-control[readonly],
[data-bs-theme="dark"] .form-control[disabled],
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control:read-only,
[data-bs-theme="dark"] .form-select[disabled],
[data-bs-theme="dark"] .form-select:disabled,
[data-bs-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #343a40 !important;
    color: #adb5bd !important;
    border-color: #495057 !important;
    cursor: not-allowed !important;
}

[data-bs-theme="dark"] select:not([disabled]):not(:disabled),
[data-bs-theme="dark"] .form-select:not([disabled]):not(:disabled),
[data-bs-theme="dark"] select:not([disabled]):not(:disabled) option,
[data-bs-theme="dark"] .form-select:not([disabled]):not(:disabled) option {
    background-color: #2c2c2e !important;
    color: #ffffff !important;
}

/* 5. Mobile & Responsive Layout Adjustments */
@media (max-width: 767.98px) {
    body, html {
        overflow: auto !important;
        height: auto !important;
    }
    .app, #app {
        overflow: visible !important;
        height: auto !important;
        display: block !important;
    }
    .app-content, #content {
        overflow: visible !important;
        height: auto !important;
        display: block !important;
    }
    .app-content-padding {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .ps {
        overflow: visible !important;
        height: auto !important;
    }
    .ps__rail-x, .ps__rail-y {
        display: none !important;
    }
}

/* 6. macOS Glassmorphism Theme Overrides */
body {
    background: radial-gradient(circle at 0% 0%, rgba(255, 154, 158, 0.4), rgba(255, 154, 158, 0) 60%), 
                radial-gradient(circle at 100% 0%, rgba(161, 196, 253, 0.45), rgba(161, 196, 253, 0) 60%), 
                radial-gradient(circle at 100% 100%, rgba(194, 233, 251, 0.4), rgba(194, 233, 251, 0) 60%), 
                radial-gradient(circle at 0% 100%, rgba(212, 252, 121, 0.35), rgba(212, 252, 121, 0) 60%), 
                #f5f5f7 !important;
    background-attachment: fixed !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
}

#app, .app {
    background: transparent !important;
}

.app-content {
    background: rgba(245, 245, 247, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* 7. macOS Header & Navigation Bar */
.app-header, #header {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}

[data-bs-theme="dark"] .app-header, [data-bs-theme="dark"] #header {
    background: rgba(30, 30, 30, 0.75) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#header .nav-link {
    position: relative !important;
    transition: color 0.25s ease !important;
}

/* Precise Therapedia Logo Scaling */
.navbar-logo img {
    height: 28px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    margin-right: 6px !important;
}

#header .nav-link:hover {
    color: #007aff !important;
}

#header .nav-link.active {
    color: #007aff !important;
    font-weight: 600 !important;
}

#header .nav-link.active::after {
    content: "" !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 10px !important;
    right: 10px !important;
    height: 3px !important;
    background: #007aff !important;
    border-radius: 2px !important;
}

[data-bs-theme="dark"] #header .nav-link.active::after {
    background: #5ac8fa !important;
}

#header .navbar-user .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    margin-top: 2px !important;
    right: 0 !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 6px !important;
    min-width: 150px !important;
    display: none;
}

#header .navbar-user.show .dropdown-menu,
#header .navbar-user .dropdown-menu.show {
    display: block !important;
}

[data-bs-theme="dark"] #header .navbar-user .dropdown-menu {
    background: rgba(30, 30, 30, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

#header .navbar-user .dropdown-item {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
}

/* 8. macOS Sidebar Navigation */
.app-sidebar, #sidebar {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: none !important;
}

.app-sidebar-bg {
    display: none !important;
}

.app-sidebar .menu {
    padding: 16px 10px !important;
}

.app-sidebar .menu-profile {
    background: rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 16px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
}

.app-sidebar[data-bs-theme="dark"] .menu-profile {
    background: rgba(255, 255, 255, 0.04) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.app-sidebar .menu-profile-image {
    border: 2px solid rgba(0, 122, 255, 0.2) !important;
}

.app-sidebar[data-bs-theme="dark"] .menu-profile-image {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.app-sidebar .menu .menu-header {
    color: #86868b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 12px 14px 6px 14px !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-header {
    color: rgba(255, 255, 255, 0.4) !important;
}

.app-sidebar .menu .menu-item {
    margin: 3px 0 !important;
}

.app-sidebar .menu .menu-item > .menu-link {
    color: #1d1d1f !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.15s ease-in-out !important;
}

.app-sidebar .menu .menu-item > .menu-link .menu-icon {
    border-radius: 6px !important;
    margin-right: 10px !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}

.app-sidebar .menu .menu-item > .menu-link:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
}

.app-sidebar .menu .menu-item.active > .menu-link {
    background: #007aff !important;
    color: #ffffff !important;
}

.app-sidebar .menu .menu-item.active > .menu-link .menu-icon i {
    color: #ffffff !important;
}

.app-sidebar[data-bs-theme="dark"], #sidebar[data-bs-theme="dark"] {
    background: rgba(30, 30, 30, 0.6) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-item > .menu-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-item.active > .menu-link {
    background: #007aff !important;
    color: #ffffff !important;
}

.app-sidebar .menu .menu-submenu {
    background: transparent !important;
    padding: 4px 0 4px 18px !important;
    margin: 0 !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    margin-left: 21px !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-submenu {
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.app-sidebar .menu .menu-submenu .menu-item {
    margin: 2px 0 !important;
}

.app-sidebar .menu .menu-submenu .menu-item > .menu-link {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #515154 !important;
    box-shadow: none !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-submenu .menu-item > .menu-link {
    color: rgba(255, 255, 255, 0.6) !important;
}

.app-sidebar .menu .menu-submenu .menu-item > .menu-link:hover {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #007aff !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-submenu .menu-item > .menu-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.app-sidebar .menu .menu-submenu .menu-item.active > .menu-link {
    background: rgba(0, 122, 255, 0.1) !important;
    color: #007aff !important;
    font-weight: 600 !important;
}

.app-sidebar[data-bs-theme="dark"] .menu .menu-submenu .menu-item.active > .menu-link {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* 9. Panels and Cards */
.panel, .card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04) !important;
    overflow: visible !important;
    position: relative;
}

.panel:focus-within, .card:focus-within {
    z-index: 100 !important;
}

.panel.panel-expand {
    position: fixed !important;
    z-index: 1080 !important;
    overflow: auto !important;
    border-radius: 0 !important;
}

[data-bs-theme="dark"] .panel, [data-bs-theme="dark"] .card {
    background: rgba(30, 30, 30, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.panel-heading, .card-header {
    background: rgba(255, 255, 255, 0.4) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #1d1d1f !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
}

[data-bs-theme="dark"] .panel-heading, [data-bs-theme="dark"] .card-header {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* 10. Footers */
.app-footer {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #86868b !important;
    padding: 16px 24px !important;
    font-size: 11px !important;
}

[data-bs-theme="dark"] .app-footer {
    background: rgba(30, 30, 30, 0.65) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #86868b !important;
}

#footer {
    background: rgba(28, 28, 30, 0.82) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 48px 0 !important;
    font-size: 13px !important;
}

#footer h5, #footer .text-white {
    color: #ffffff !important;
    font-weight: 700 !important;
}

#footer p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
}

#footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s ease !important;
}

#footer a:hover {
    color: #007aff !important;
    text-shadow: 0 0 8px rgba(0, 122, 255, 0.3) !important;
}

#footer hr {
    border-color: rgba(255, 255, 255, 0.12) !important;
    margin: 24px 0 !important;
}

#footer .footer-copyright-text {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12px !important;
}

/* 11. Native macOS Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* 12. Typography */
h1, h2, h3, h4, h5, h6, .page-header {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    color: #1d1d1f !important;
    font-weight: 700 !important;
    letter-spacing: -0.022em !important;
}

[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2, [data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4, [data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 {
    color: #ffffff !important;
}

/* 13. Modals & Dialogs */
.modal {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.modal-backdrop {
    display: none !important;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(30px) !important;
    -webkit-backdrop-filter: blur(30px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="dark"] .modal-content {
    background: rgba(45, 45, 45, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.modal-header {
    border-bottom: none !important;
    padding: 20px 24px 10px 24px !important;
}

.modal-footer {
    border-top: none !important;
    padding: 10px 24px 20px 24px !important;
}

/* 14. Buttons & Badges */
.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
    transition: all 0.15s ease-in-out !important;
    border: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn-primary {
    background: linear-gradient(180deg, #007aff, #006ae6) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    opacity: 0.95 !important;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3) !important;
}

.btn-success {
    background: linear-gradient(180deg, #34c759, #28a745) !important;
    color: #ffffff !important;
}

.btn-success:hover {
    opacity: 0.95 !important;
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.3) !important;
}

.btn-danger {
    background: linear-gradient(180deg, #ff3b30, #e03025) !important;
    color: #ffffff !important;
}

.btn-danger:hover {
    opacity: 0.95 !important;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.3) !important;
}

.btn-warning {
    background: linear-gradient(180deg, #ff9500, #e08500) !important;
    color: #ffffff !important;
}

.btn-warning:hover {
    opacity: 0.95 !important;
    box-shadow: 0 2px 6px rgba(255, 149, 0, 0.3) !important;
}

.btn-info {
    background: linear-gradient(180deg, #5ac8fa, #42b0e6) !important;
    color: #ffffff !important;
}

.btn-info:hover {
    opacity: 0.95 !important;
    box-shadow: 0 2px 6px rgba(90, 200, 250, 0.3) !important;
}

.btn-secondary, .btn-default {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1d1d1f !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="dark"] .btn-secondary, [data-bs-theme="dark"] .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    text-transform: capitalize !important;
    letter-spacing: 0.1px !important;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.badge.bg-success {
    background-color: rgba(52, 199, 89, 0.12) !important;
    color: #1b8a3d !important;
    border-color: rgba(52, 199, 89, 0.2) !important;
}

.badge.bg-warning {
    background-color: rgba(255, 149, 0, 0.12) !important;
    color: #b26700 !important;
    border-color: rgba(255, 149, 0, 0.2) !important;
}

.badge.bg-danger {
    background-color: rgba(255, 59, 48, 0.12) !important;
    color: #c92a2a !important;
    border-color: rgba(255, 59, 48, 0.2) !important;
}

/* Header Notification Count Badge - Solid macOS Tahoe Style */
#notification-count,
.navbar-link .badge,
.navbar-item .badge.bg-danger {
    background-color: #ff3b30 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    min-width: 19px !important;
    height: 19px !important;
    padding: 0 5px !important;
    border-radius: 9999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4) !important;
    line-height: 1 !important;
    z-index: 10 !important;
}

[data-bs-theme="dark"] #notification-count,
[data-bs-theme="dark"] .navbar-link .badge,
[data-bs-theme="dark"] .navbar-item .badge.bg-danger {
    border-color: #1d1d1f !important;
    background-color: #ff453a !important;
}

.badge.bg-info {
    background-color: rgba(90, 200, 250, 0.12) !important;
    color: #1a88b8 !important;
    border-color: rgba(90, 200, 250, 0.2) !important;
}

.badge.bg-primary {
    background-color: rgba(0, 122, 255, 0.12) !important;
    color: #007aff !important;
    border-color: rgba(0, 122, 255, 0.2) !important;
}

/* 15. Form Controls, macOS Tahoe Select & Dropdowns, Select2 */
.form-control {
    border-radius: 10px !important;
    border: 1px solid #d1d1d6 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px !important;
    padding: 9px 14px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    color: #1d1d1f !important;
}

[data-bs-theme="dark"] .form-control {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(45, 45, 45, 0.8) !important;
    color: #ffffff !important;
}

/* macOS Tahoe Seamless Integrated Input Group System */
.input-group {
    display: flex !important;
    align-items: center !important;
    border-radius: 10px !important;
    border: 1px solid #d1d1d6 !important;
    background-color: #ffffff !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    overflow: hidden !important;
}

.input-group:focus-within {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.25) !important;
}

.input-group .form-control {
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 9px 12px !important;
    height: auto !important;
    flex: 1 1 auto !important;
}

.input-group .input-group-text {
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    color: #8e8e93 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 8px 14px 8px 4px !important;
    user-select: none !important;
    white-space: nowrap !important;
}

[data-bs-theme="dark"] .input-group {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background-color: #2c2c2e !important;
}

[data-bs-theme="dark"] .input-group .input-group-text {
    color: #98989d !important;
}

/* macOS Tahoe Premium Select & Dropdown Controls */
.form-select, select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    padding: 8px 38px 8px 14px !important;
    border-radius: 10px !important;
    border: 1px solid #d1d1d6 !important;
    background-color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    height: 42px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    color: #1d1d1f !important;
}

select option, .form-select option {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background-color: #ffffff !important;
    color: #1d1d1f !important;
}

select option:checked, .form-select option:checked {
    background: #007aff !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .form-select, [data-bs-theme="dark"] select {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background-color: #2c2c2e !important;
    color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235ac8fa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

[data-bs-theme="dark"] select option, [data-bs-theme="dark"] .form-select option {
    background-color: #2c2c2e !important;
    color: #ffffff !important;
}

.form-control:focus, .form-select:focus, select:focus {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.25) !important;
    outline: none !important;
}

/* Select2 Glassmorphic macOS Tahoe Dropdown Popup */
.select2-container.select2,
.select2-container.select2 .selection {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.select2-container--default .select2-selection--single {
    height: 42px !important;
    border-radius: 10px !important;
    border: 1px solid #d1d1d6 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 6px !important;
    padding-right: 30px !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 40px !important;
    padding-left: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #007aff transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #007aff transparent !important;
    border-width: 0 4px 5px 4px !important;
}

.select2-dropdown {
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 6px !important;
    margin-top: 6px !important;
    overflow: hidden !important;
    z-index: 1060 !important;
}

[data-bs-theme="dark"] .select2-dropdown {
    background: rgba(35, 35, 35, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

.select2-results__option {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1d1d1f !important;
    margin-bottom: 2px !important;
    transition: all 0.15s ease !important;
}

[data-bs-theme="dark"] .select2-results__option {
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #007aff !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(0, 122, 255, 0.12) !important;
    color: #007aff !important;
    font-weight: 600 !important;
}

.dropdown-menu, .picker-menu, .datepicker, .daterangepicker, .ui-datepicker, .bootstrap-select .dropdown-menu {
    z-index: 1060 !important;
}

/* macOS Tahoe Ultra-Clear High-Contrast Radio Button System */
.form-check-input {
    width: 1.15em !important;
    height: 1.15em !important;
    margin-top: 0.15em !important;
    border-radius: 4px !important;
    border: 1.5px solid #7c7c80 !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.form-check-input[type="radio"],
input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    margin: 0 auto !important;
    border-radius: 50% !important;
    border: 2px solid #7c7c80 !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
}

.form-check-input[type="radio"]:hover:not([disabled]):not(:disabled),
input[type="radio"]:hover:not([disabled]):not(:disabled) {
    border-color: #007aff !important;
    background-color: rgba(0, 122, 255, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15) !important;
    transform: scale(1.08) !important;
}

.form-check-input[type="radio"]:checked,
input[type="radio"]:checked {
    background-color: #ffffff !important;
    border-color: #007aff !important;
    background-image: radial-gradient(circle, #007aff 48%, transparent 52%) !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2), 0 3px 8px rgba(0, 122, 255, 0.35) !important;
    transform: scale(1.18) !important;
}

.form-check-input:focus,
input[type="radio"]:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3) !important;
    border-color: #007aff !important;
    outline: none !important;
}

[data-bs-theme="dark"] .form-check-input[type="radio"],
[data-bs-theme="dark"] input[type="radio"] {
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background-color: #2c2c2e !important;
}

[data-bs-theme="dark"] .form-check-input[type="radio"]:checked,
[data-bs-theme="dark"] input[type="radio"]:checked {
    background-color: #2c2c2e !important;
    border-color: #007aff !important;
    background-image: radial-gradient(circle, #007aff 48%, transparent 52%) !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 3px 8px rgba(0, 122, 255, 0.5) !important;
}

/* macOS Tahoe Ultra-Clear High-Contrast Checkbox System */
input[type="checkbox"],
.form-check-input[type="checkbox"] {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    min-height: 19px !important;
    border-radius: 5px !important;
    border: 2px solid #7c7c80 !important;
    background-color: #ffffff !important;
    background-image: none !important;
    cursor: pointer !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
}

input[type="checkbox"]:hover:not([disabled]):not(:disabled),
.form-check-input[type="checkbox"]:hover:not([disabled]):not(:disabled) {
    border-color: #007aff !important;
    background-color: rgba(0, 122, 255, 0.06) !important;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15) !important;
    transform: scale(1.08) !important;
}

input[type="checkbox"]:checked,
.form-check-input[type="checkbox"]:checked {
    background-color: #ffffff !important;
    border-color: #007aff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23007aff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 88% 88% !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2), 0 3px 8px rgba(0, 122, 255, 0.35) !important;
    transform: scale(1.1) !important;
}

input[type="checkbox"]:focus,
.form-check-input[type="checkbox"]:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3) !important;
    border-color: #007aff !important;
    outline: none !important;
}

[data-bs-theme="dark"] input[type="checkbox"],
[data-bs-theme="dark"] .form-check-input[type="checkbox"] {
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    background-color: #2c2c2e !important;
}

[data-bs-theme="dark"] input[type="checkbox"]:checked,
[data-bs-theme="dark"] .form-check-input[type="checkbox"]:checked {
    background-color: #2c2c2e !important;
    border-color: #007aff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23007aff'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3), 0 3px 8px rgba(0, 122, 255, 0.5) !important;
}

/* Checkbox Label Highlight on Check */
label:has(input[type="checkbox"]:checked),
.form-check:has(input[type="checkbox"]:checked) {
    color: #007aff !important;
    font-weight: 600 !important;
    transition: color 0.15s ease !important;
}

/* Matrix Table Cell Highlight when Radio is Checked */
table td:has(input[type="radio"]:checked),
.table td:has(.form-check-input[type="radio"]:checked) {
    background-color: rgba(0, 122, 255, 0.12) !important;
    border-color: rgba(0, 122, 255, 0.3) !important;
    transition: background-color 0.2s ease !important;
}

[data-bs-theme="dark"] table td:has(input[type="radio"]:checked),
[data-bs-theme="dark"] .table td:has(.form-check-input[type="radio"]:checked) {
    background-color: rgba(0, 122, 255, 0.25) !important;
}

/* 16. Progress Bars, Alerts & Notifications */
.progress {
    height: 8px !important;
    border-radius: 9999px !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

[data-bs-theme="dark"] .progress {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.progress-bar {
    border-radius: 9999px !important;
    background-color: #007aff !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

.alert {
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    padding: 12px 18px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    font-size: 13px !important;
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.12) !important;
    border-color: rgba(52, 199, 89, 0.2) !important;
    color: #1b8a3d !important;
}

.alert-warning {
    background-color: rgba(255, 149, 0, 0.12) !important;
    border-color: rgba(255, 149, 0, 0.2) !important;
    color: #b26700 !important;
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.12) !important;
    border-color: rgba(255, 59, 48, 0.25) !important;
    color: #d70015 !important;
    border-radius: 14px !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 16px rgba(255, 59, 48, 0.08) !important;
    font-weight: 500 !important;
}

.alert-info {
    background-color: rgba(90, 200, 250, 0.12) !important;
    border-color: rgba(90, 200, 250, 0.2) !important;
    color: #1a88b8 !important;
}

/* macOS Tahoe Step Guidance Box */
.macos-step-info {
    background: rgba(0, 122, 255, 0.06) !important;
    border: 1px solid rgba(0, 122, 255, 0.18) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

[data-bs-theme="dark"] .macos-step-info {
    background: rgba(90, 200, 250, 0.1) !important;
    border-color: rgba(90, 200, 250, 0.25) !important;
}

/* ========================================================== */
/* macOS Tahoe Modern Minimalist Form Validation System       */
/* ========================================================== */

/* 1. Invalid Input States & Red Glowing Outline */
.is-invalid,
.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
    border-color: #ff3b30 !important;
    background-color: rgba(255, 59, 48, 0.03) !important;
    box-shadow: 0 0 0 3.5px rgba(255, 59, 48, 0.2) !important;
    animation: macosShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) !important;
}

.is-invalid:focus,
.was-validated .form-control:invalid:focus,
.was-validated .form-select:invalid:focus,
.was-validated select:invalid:focus,
.was-validated textarea:invalid:focus {
    border-color: #ff3b30 !important;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.28) !important;
    background-color: #ffffff !important;
}

[data-bs-theme="dark"] .is-invalid,
[data-bs-theme="dark"] .was-validated .form-control:invalid,
[data-bs-theme="dark"] .was-validated .form-select:invalid {
    background-color: rgba(255, 69, 58, 0.08) !important;
    border-color: #ff453a !important;
    box-shadow: 0 0 0 3.5px rgba(255, 69, 58, 0.28) !important;
}

/* 2. macOS Shake Animation for Invalid Fields */
@keyframes macosShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* 3. macOS Tahoe Floating Glassmorphic Validation Badges / Inline Error Messages */
.invalid-feedback,
.invalid-tooltip,
.macos-val-msg {
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #ff3b30 !important;
    margin-top: 6px !important;
    padding: 5px 12px !important;
    background: rgba(255, 59, 48, 0.08) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 59, 48, 0.22) !important;
    border-radius: 8px !important;
    width: fit-content !important;
    max-width: 100% !important;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.08) !important;
    animation: macosPopIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip,
.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.invalid-feedback::before,
.invalid-tooltip::before,
.macos-val-msg::before {
    content: "\f06a" !important; /* FontAwesome exclamation circle */
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 11px !important;
    color: #ff3b30 !important;
}

[data-bs-theme="dark"] .invalid-feedback,
[data-bs-theme="dark"] .invalid-tooltip,
[data-bs-theme="dark"] .macos-val-msg {
    background: rgba(255, 69, 58, 0.15) !important;
    border-color: rgba(255, 69, 58, 0.3) !important;
    color: #ff453a !important;
}
[data-bs-theme="dark"] .invalid-feedback::before,
[data-bs-theme="dark"] .invalid-tooltip::before,
[data-bs-theme="dark"] .macos-val-msg::before {
    color: #ff453a !important;
}

@keyframes macosPopIn {
    0% {
        opacity: 0;
        transform: translateY(-4px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gritter-item-wrapper {
    background: transparent !important;
    box-shadow: none !important;
}

.gritter-item {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
    color: #1d1d1f !important;
    overflow: hidden !important;
}

.gritter-title {
    font-weight: 700 !important;
    color: #1d1d1f !important;
}

/* 17. SweetAlert2 macOS Overrides */
.swal2-popup {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(200%) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 24px 20px 18px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    width: 300px !important;
}

[data-bs-theme="dark"] .swal2-popup {
    background: rgba(45, 45, 45, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.swal2-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1.35 !important;
}

[data-bs-theme="dark"] .swal2-title {
    color: #ffffff !important;
}

.swal2-html-container {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #555555 !important;
    line-height: 1.45 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

[data-bs-theme="dark"] .swal2-html-container {
    color: #bbbbbb !important;
}

.swal2-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    align-items: center !important;
}

.swal2-confirm, .swal2-cancel {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    display: block !important;
}

.swal2-confirm {
    background: linear-gradient(180deg, #007aff 0%, #0063cc 100%) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 1px 3px rgba(0, 122, 255, 0.3) !important;
}

.swal2-confirm:hover {
    background: linear-gradient(180deg, #1485ff 0%, #007aff 100%) !important;
}

.swal2-cancel {
    background: transparent !important;
    color: #007aff !important;
    font-weight: 400 !important;
}

.swal2-cancel:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* 18. Sidebar Minify Button */
.app-sidebar-minify-btn {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: none !important;
    color: #515154 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 6px 12px 6px 14px !important;
    border-radius: 20px 0 0 20px !important;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    text-decoration: none !important;
}

[data-bs-theme="dark"] .app-sidebar-minify-btn {
    background: rgba(30, 30, 30, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: none !important;
    color: #bbbbbb !important;
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.app-sidebar-minify-btn:hover {
    background: #007aff !important;
    color: #ffffff !important;
    padding-left: 18px !important;
    border-color: #007aff !important;
    box-shadow: -2px 4px 12px rgba(0, 122, 255, 0.25) !important;
}

.app-sidebar-minify-btn i {
    font-size: 10px !important;
    transition: transform 0.2s ease !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    display: inline-block !important;
}

.app-sidebar-minify-btn i::before {
    content: "\f060" !important;
}

body .app-sidebar-minified .app-sidebar-minify-btn {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-left: none !important;
    color: #007aff !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 0 13px 13px 0 !important;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    margin: 15px 0 15px auto !important;
}

/* 19. Micro-Animations */
@keyframes macosFadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-content, #content, .app-content-padding {
    animation: macosFadeInUp 0.45s cubic-bezier(0.23, 1, 0.32, 1) forwards !important;
}

.card, .panel {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                background 0.3s ease, 
                border-color 0.3s ease !important;
}

.card:hover, .panel:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

.btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.btn:active {
    transform: translateY(1px) scale(0.97) !important;
    box-shadow: none !important;
}

/* 20. Auth Lock Screen & Card Box Non-Fluid Fixed Styles */
.login.login-v2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    width: 100% !important;
    position: relative !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 40px 0 !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.app {
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

.login-cover {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.login-cover-img {
    background: radial-gradient(circle at 0% 0%, rgba(255, 154, 158, 0.35), rgba(255, 154, 158, 0) 65%), 
                radial-gradient(circle at 100% 0%, rgba(161, 196, 253, 0.4), rgba(161, 196, 253, 0) 65%), 
                radial-gradient(circle at 100% 100%, rgba(194, 233, 251, 0.35), rgba(194, 233, 251, 0) 65%), 
                radial-gradient(circle at 0% 100%, rgba(212, 252, 121, 0.3), rgba(212, 252, 121, 0) 65%), 
                #f5f5f7 !important;
    background-size: cover !important;
    filter: blur(2px) scale(1.05) !important;
}

.login-cover-bg {
    background: rgba(0, 0, 0, 0.03) !important;
}

.login.login-v2 {
    position: relative !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
}

.login-container {
    position: relative !important;
    margin: auto !important;
    width: 100% !important;
    max-width: 430px !important;
    min-width: 0 !important;
    height: auto !important;
    flex: 0 0 auto !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: blur(45px) saturate(210%) !important;
    -webkit-backdrop-filter: blur(45px) saturate(210%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.12) !important;
    padding: 28px 24px 24px 24px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.login-container .form-check {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.login-container .form-check-input {
    margin-left: 0 !important;
    float: none !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

@media (max-width: 576px) {
    .login.login-v2 {
        padding: 16px 12px !important;
    }
    .login-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px 18px 18px 18px !important;
        border-radius: 22px !important;
    }
}


[data-bs-theme="dark"] .login-container {
    background: rgba(30, 30, 32, 0.78) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35) !important;
}

.login-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
}

.brand {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    width: 100% !important;
    text-align: center !important;
}

[data-bs-theme="dark"] .brand {
    color: #ffffff !important;
}

.brand img.logo {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 10px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    padding: 4px !important;
}

.login-content {
    width: 100% !important;
    box-sizing: border-box !important;
}

.login-content form {
    width: 100% !important;
    box-sizing: border-box !important;
}

.btn-theme {
    background: linear-gradient(180deg, #007aff 0%, #0063cc 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    height: 46px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
    border: none !important;
    width: 100% !important;
}

.btn-theme:hover {
    background: linear-gradient(180deg, #1485ff 0%, #007aff 100%) !important;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3) !important;
}

.btn-white {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    height: 46px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* reCAPTCHA Responsive Scaling Wrapper */
.recaptcha-responsive-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
}
@media (max-width: 360px) {
    .recaptcha-responsive-wrapper > div {
        transform: scale(0.8) !important;
        transform-origin: center center !important;
    }
}
@media (min-width: 361px) and (max-width: 410px) {
    .recaptcha-responsive-wrapper > div {
        transform: scale(0.88) !important;
        transform-origin: center center !important;
    }
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* 21. macOS Modal & Confirmation Component Styles */
.macos-modal {
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    padding: 24px 20px 18px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    width: 290px !important;
}

[data-bs-theme="dark"] .macos-modal {
    background: rgba(45, 45, 45, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.macos-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

[data-bs-theme="dark"] .macos-title {
    color: #ffffff !important;
}

.macos-text {
    font-size: 11.5px !important;
    font-weight: 400 !important;
    color: #555555 !important;
    line-height: 1.45 !important;
    margin-bottom: 22px !important;
    padding: 0 5px !important;
    text-align: center !important;
}

[data-bs-theme="dark"] .macos-text {
    color: #cccccc !important;
}

.macos-actions {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    justify-content: space-between !important;
}

.macos-confirm-btn {
    flex: 1 !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    background: #ff3b30 !important;
    cursor: pointer !important;
    transition: background 0.1s ease !important;
    outline: none !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

.macos-confirm-btn:hover {
    background: #e03025 !important;
}

.macos-cancel-btn {
    flex: 1 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    padding: 8px 12px !important;
    border-radius: 7px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #000000 !important;
    background: #ffffff !important;
    cursor: pointer !important;
    transition: background 0.1s ease !important;
    outline: none !important;
    text-align: center !important;
    box-shadow: 0 1px 1px rgba(0,0,0,0.02) !important;
}

[data-bs-theme="dark"] .macos-cancel-btn {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.macos-toast {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    padding: 12px 16px !important;
    display: flex !important;
    align-items: center !important;
    width: 320px !important;
    margin-top: 15px !important;
    margin-right: 15px !important;
}

/* 22. Public Share Sensory Form Custom Styles */
.form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.header-card {
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    color: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.15);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.header-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.header-card h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.header-card p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.section-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    border: 1px solid #e5e7eb;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #005580;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scoring-legend {
    background-color: #f9fafb;
    border-left: 4px solid #ff9500;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    font-size: 13.5px;
    margin-bottom: 25px;
}

.scoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.scoring-item {
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.scoring-num {
    font-weight: bold;
    color: #ff9500;
    font-size: 15px;
}

.question-row {
    padding: 15px 0;
    border-bottom: 1px solid #f3f4f6;
}

.question-row:last-child {
    border-bottom: none;
}

.question-text {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 10px;
    font-weight: 500;
}

.options-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.option-button {
    flex: 1;
    position: relative;
}

.option-button input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: block;
    background-color: #f3f4f6;
    color: #4b5563;
    text-align: center;
    padding: 10px 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.option-label:hover {
    background-color: #e5e7eb;
}

.option-button input:checked + .option-label {
    background-color: #0088cc;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.25);
}

.form-control-macos {
    border-radius: 10px !important;
    border: 1px solid #d1d5db !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background-color: #f9fafb !important;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-control-macos:focus {
    border-color: #0088cc !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15) !important;
}

@media (max-width: 768px) {
    .option-label::before {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid #9ca3af;
        flex-shrink: 0;
    }
    .option-button input:checked + .option-label::before {
        border-color: white;
        background-color: white;
        box-shadow: inset 0 0 0 3px #0088cc;
    }
}

/* Wizard Form Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}
.skeleton-item {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    display: inline-block;
    position: relative;
    animation-duration: 1.2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: shimmer;
    animation-timing-function: linear;
}
#wizardForm, #wizardHeader {
    display: none;
}

/* Home Page Styles & Animations */
#home {
    padding-top: 100px !important; /* Prevent overlap with fixed app header */
}
.swiper {
    width: 100%;
    height: 400px;
}

/* macOS-style Scroll Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.99);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay timings */
.delay-1 { transition-delay: 0.08s !important; }
.delay-2 { transition-delay: 0.16s !important; }
.delay-3 { transition-delay: 0.24s !important; }
.delay-4 { transition-delay: 0.32s !important; }
.delay-5 { transition-delay: 0.4s !important; }

/* Hero Load Animations */
.hero-animate {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    animation: heroEntrance 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-animate.delay-2 {
    animation-delay: 0.2s;
}
@keyframes heroEntrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Premium Hover Animations */
#about .col-xl-3 {
    transition: all 0.3s ease;
}
#about .col-xl-3:hover {
    transform: translateY(-4px) !important;
}
#pricing .col-xl-3 {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#pricing .col-xl-3:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}
#blog .col-xl-3 {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
#blog .col-xl-3:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
}

/* macOS System Settings Theme Style Overrides */
#bsSpyTarget {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    padding: 8px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}

[data-bs-theme="dark"] #bsSpyTarget {
    background: rgba(35, 35, 35, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

#bsSpyTarget .nav-link {
    text-align: left !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
}

[data-bs-theme="dark"] #bsSpyTarget .nav-link {
    color: #dddddd !important;
}

#bsSpyTarget .nav-link::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    width: 16px;
    display: inline-block;
}

/* Inject custom icons for settings tabs */
#bsSpyTarget .nav-link[href="#general"]::before {
    content: "\f007"; /* User icon */
    color: #007aff;
}
#bsSpyTarget .nav-link[href="#kepegawaian"]::before {
    content: "\f0c0"; /* Users icon */
    color: #34c759;
}
#bsSpyTarget .nav-link[href="#access"]::before {
    content: "\f023"; /* Lock icon */
    color: #ff9500;
}

#bsSpyTarget .nav-link:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #000000 !important;
    padding-left: 14px !important;
}
[data-bs-theme="dark"] #bsSpyTarget .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

#bsSpyTarget .nav-link.active {
    background: #007aff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.25) !important;
    padding-left: 14px !important;
}

#bsSpyTarget .nav-link.active::before {
    color: #ffffff !important; /* Force icon white when active */
}

/* Responsive settings grid */
.navbar-sticky {
    position: sticky !important;
    top: 85px !important;
    height: auto !important;
}

/* Settings Card List custom styling */
#bsSpyContent .card {
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
}
[data-bs-theme="dark"] #bsSpyContent .card {
    background: rgba(30, 30, 30, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.list-group-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 14px 20px !important;
    transition: background-color 0.2s ease !important;
    font-size: 13px !important;
}
[data-bs-theme="dark"] .list-group-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.list-group-item:last-child {
    border-bottom: none !important;
}

.list-group-item:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}
[data-bs-theme="dark"] .list-group-item:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.list-group-item > div:first-child {
    font-weight: 600 !important;
    color: #1d1d1f !important;
    font-size: 13.5px !important;
}
[data-bs-theme="dark"] .list-group-item > div:first-child {
    color: #ffffff !important;
}

.list-group-item .text-body {
    font-size: 12px !important;
    font-weight: 400 !important;
    margin-top: 2px !important;
}

/* Buttons overrides on settings list */
.list-group-item .btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    background: #ffffff !important;
    color: #007aff !important;
}
[data-bs-theme="dark"] .list-group-item .btn {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #5ac8fa !important;
}
.list-group-item .btn:hover {
    background: #007aff !important;
    color: #ffffff !important;
    border-color: #007aff !important;
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2) !important;
}
[data-bs-theme="dark"] .list-group-item .btn:hover {
    background: #007aff !important;
    color: #ffffff !important;
    border-color: #007aff !important;
}

/* Settings Subheaders */
#bsSpyContent h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin-top: 15px !important;
}
[data-bs-theme="dark"] #bsSpyContent h4 {
    color: #ffffff !important;
}
#bsSpyContent p {
    font-size: 12px !important;
    color: #86868b !important;
    margin-bottom: 12px !important;
}

/* macOS unified search group styling */
.macos-input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
[data-bs-theme="dark"] .macos-input-group {
    background: rgba(30, 30, 30, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}
.macos-input-group:focus-within {
    border-color: #007aff !important;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2) !important;
    background: #ffffff !important;
}
[data-bs-theme="dark"] .macos-input-group:focus-within {
    background: rgba(20, 20, 20, 0.6) !important;
}
.macos-input-group .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 8px 18px !important;
    height: 38px !important;
    font-size: 13px !important;
    color: inherit !important;
}
.macos-input-group .btn-search {
    border: none !important;
    background: #007aff !important;
    color: #ffffff !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
}
.macos-input-group .btn-search:hover {
    background-color: #0062cc !important;
}
.macos-input-group .btn-search:active {
    transform: scale(0.97) !important;
}

/* User Profile Header Styles */
.profile-header-img {
    width: 120px !important;
    height: 120px !important;
    padding: 0 !important;
    background: #fff;
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.profile-header-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.profile-header-content {
    display: flex !important;
    align-items: center !important;
}

/* Modal Rounded Corners and Header Color Overflow Clip */
.modal, .modal-dialog, .modal-content {
    border-radius: 16px !important;
}
.modal-content {
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}
.modal-header {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.modal-footer {
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Select2 Dropdown / Selection White Container Rounded Corners */
.select2-container--default .select2-selection--single,
.select2-selection.select2-selection--single,
.select2-container .select2-selection--single {
    border-radius: 10px !important;
    overflow: hidden !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* User Profile Avatar Hover Overlay */
.profile-header-img {
    position: relative !important;
    cursor: pointer !important;
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    min-height: 110px !important;
    border: 4px solid #ffffff !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
    background-color: #ffffff !important;
    transition: transform 0.2s ease !important;
}

.profile-header-img:hover {
    transform: scale(1.03) !important;
}

.profile-avatar-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 50% !important;
    z-index: 5 !important;
}

.profile-header-img:hover .profile-avatar-overlay {
    opacity: 1 !important;
}

.profile-avatar-overlay i {
    color: #ffffff !important;
    font-size: 24px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================================== */
/* macOS Tahoe Premium Profile Header & Cover System         */
/* ========================================================== */

.profile {
    background: transparent !important;
}

.profile-header {
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
    margin-bottom: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.profile-header-cover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    z-index: 1 !important;
}

/* Dark gradient overlay on top of the cover image for maximum text readability */
.profile-header-cover::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.65) 100%) !important;
    z-index: 2 !important;
}

.profile-header-content {
    position: relative !important;
    z-index: 3 !important;
    padding: 30px !important;
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
}

.profile-header-info {
    color: #ffffff !important;
}

.profile-header-info h4 {
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: -0.5px !important;
}

.profile-header-info p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Glassmorphic Email Badge */
.profile-email-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 6px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.profile-email-badge:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* macOS Tahoe Style Tab bar */
.profile-header-tab {
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 0 24px !important;
    margin: 0 !important;
    display: flex !important;
    list-style: none !important;
    border-bottom: none !important;
    position: relative !important;
    z-index: 4 !important;
}

[data-bs-theme="dark"] .profile-header-tab {
    background: #1c1c1e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.profile-header-tab .nav-item {
    margin: 0 !important;
}

.profile-header-tab .nav-link {
    color: #8e8e93 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: none !important;
    padding: 14px 20px !important;
    background: transparent !important;
    position: relative !important;
    transition: color 0.15s ease !important;
    border-radius: 0 !important;
    display: block !important;
    text-decoration: none !important;
}

.profile-header-tab .nav-link:hover {
    color: #1d1d1f !important;
}

[data-bs-theme="dark"] .profile-header-tab .nav-link:hover {
    color: #ffffff !important;
}

.profile-header-tab .nav-link.active {
    color: #007aff !important;
    background: transparent !important;
}

.profile-header-tab .nav-link.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 20px !important;
    right: 20px !important;
    height: 3px !important;
    background-color: #007aff !important;
    border-radius: 3px 3px 0 0 !important;
}

/* Premium Open Apps Button in Header */
.btn-open-apps {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #007aff !important;
    border-color: #007aff !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 20px !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
    height: 38px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.btn-open-apps:hover {
    background-color: #0062cc !important;
    border-color: #005cbf !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

.btn-open-apps:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2) !important;
}

.btn-open-apps i {
    font-size: 11px !important;
    line-height: 1 !important;
    transition: transform 0.2s ease !important;
}

.btn-open-apps:hover i {
    transform: translateX(2px) !important;
}

/* ========================================================== */
/* macOS Tahoe Toast Notifications System                   */
/* ========================================================== */

.swal2-container.swal2-top-end > .swal2-popup.swal2-toast,
.swal2-popup.swal2-toast,
.swal2-popup.macos-toast,
.macos-toast {
    width: auto !important;
    min-width: 380px !important;
    max-width: 540px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

[data-bs-theme="dark"] .swal2-popup.swal2-toast,
[data-bs-theme="dark"] .swal2-popup.macos-toast,
[data-bs-theme="dark"] .macos-toast {
    background: rgba(30, 30, 30, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.swal2-popup.swal2-toast .swal2-icon,
.swal2-popup.macos-toast .swal2-icon,
.macos-toast .swal2-icon {
    margin: 0 8px 0 0 !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.macos-toast .macos-toast-title,
.macos-toast-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
}

[data-bs-theme="dark"] .swal2-popup.swal2-toast .swal2-title,
[data-bs-theme="dark"] .swal2-popup.macos-toast .macos-toast-title,
[data-bs-theme="dark"] .macos-toast-title {
    color: #ffffff !important;
}

.swal2-popup.swal2-toast .swal2-html-container,
.swal2-popup.macos-toast .macos-toast-text,
.macos-toast-text {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #48484a !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

[data-bs-theme="dark"] .swal2-popup.swal2-toast .swal2-html-container,
[data-bs-theme="dark"] .swal2-popup.macos-toast .macos-toast-text,
[data-bs-theme="dark"] .macos-toast-text {
    color: #ebebf5 !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar,
.swal2-popup.macos-toast .swal2-timer-progress-bar,
.macos-toast .swal2-timer-progress-bar {
    background: #007aff !important;
    height: 3px !important;
}

/* ========================================================== */
/* macOS Tahoe Modern Submit Card & Button (ShareSensory)    */
/* ========================================================== */

.submit-card-wrapper {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-top: 40px;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .submit-card-wrapper {
    background: rgba(30, 30, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.submit-card-hint {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-bs-theme="dark"] .submit-card-hint {
    color: #a1a1aa;
}

.btn-macos-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 440px !important;
    height: 52px !important;
    padding: 0 32px !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    letter-spacing: 0.2px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%) !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.btn-macos-primary:hover {
    background: linear-gradient(135deg, #0066e6 0%, #00449e 100%) !important;
    box-shadow: 0 14px 32px rgba(0, 122, 255, 0.45), 0 4px 10px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) scale(1.01) !important;
    color: #ffffff !important;
}

.btn-macos-primary:active {
    transform: translateY(0) scale(0.99) !important;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.3) !important;
}

.btn-macos-primary .btn-icon {
    font-size: 16px !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-macos-primary:hover .btn-icon {
    transform: translate(3px, -3px) scale(1.1) !important;
}

.btn-macos-primary:disabled,
.btn-macos-primary.disabled {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================================== */
/* macOS Tahoe Modern Toggle Switch System                    */
/* ========================================================== */

.form-switch-macos {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    position: relative !important;
    margin: 0 !important;
    vertical-align: middle !important;
}

.switch-input-macos {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.switch-slider-macos {
    position: relative !important;
    display: inline-block !important;
    width: 44px !important;
    height: 24px !important;
    background-color: #e9e9ea !important;
    border-radius: 12px !important;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2) !important;
    flex-shrink: 0 !important;
}

.switch-slider-macos::after {
    content: "" !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 20px !important;
    height: 20px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Checked State */
.switch-input-macos:checked + .switch-slider-macos {
    background-color: #34c759 !important; /* Signature macOS Tahoe Green */
}

.switch-input-macos:checked + .switch-slider-macos::after {
    transform: translateX(20px) !important;
}

/* Hover & Focus State */
.form-switch-macos:hover .switch-slider-macos {
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.3), 0 0 8px rgba(52, 199, 89, 0.25) !important;
}

.switch-input-macos:focus-visible + .switch-slider-macos {
    outline: 2px solid #007aff !important;
    outline-offset: 2px !important;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .switch-slider-macos {
    background-color: rgba(120, 120, 128, 0.35) !important;
}

[data-bs-theme="dark"] .switch-input-macos:checked + .switch-slider-macos {
    background-color: #30d158 !important;
}

.switch-label-macos {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #1d1d1f !important;
    letter-spacing: -0.1px !important;
}

[data-bs-theme="dark"] .switch-label-macos {
    color: #f5f5f7 !important;
}

/* ========================================================== */
/* File Input Fields Style (Remove Gray & Disabled Cursor)   */
/* ========================================================== */

input[type="file"]:not([readonly]):not([disabled]),
.form-control[type="file"]:not([readonly]):not([disabled]),
input[type="file"].form-control:not([readonly]):not([disabled]),
.form-control-macos[type="file"]:not([readonly]):not([disabled]) {
    background-color: #ffffff !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
}

input[type="file"]:not([readonly]):not([disabled])::file-selector-button,
.form-control[type="file"]:not([readonly]):not([disabled])::-webkit-file-upload-button {
    background-color: #f0f0f5 !important;
    color: #1d1d1f !important;
    cursor: pointer !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] input[type="file"]:not([readonly]):not([disabled]),
[data-bs-theme="dark"] .form-control[type="file"]:not([readonly]):not([disabled]),
[data-bs-theme="dark"] input[type="file"].form-control:not([readonly]):not([disabled]) {
    background-color: #1c1c1e !important;
    color: #f5f5f7 !important;
    cursor: pointer !important;
}

[data-bs-theme="dark"] input[type="file"]:not([readonly]):not([disabled])::file-selector-button {
    background-color: #2c2c2e !important;
    color: #f5f5f7 !important;
    cursor: pointer !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* When explicitly readonly or disabled */
input[type="file"][readonly],
input[type="file"][disabled],
.form-control[type="file"][readonly],
.form-control[type="file"][disabled] {
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
    opacity: 0.75 !important;
}

/* macOS Tahoe Vibrant Hero Action Buttons */
#home .div-hero-content a.btn-tahoe-primary,
#home a.btn-tahoe-primary,
.btn-tahoe-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 32px !important;
    height: 52px !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #007aff 0%, #0051a8 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.3px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 25px rgba(0, 122, 255, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
#home .div-hero-content a.btn-tahoe-primary:hover,
#home a.btn-tahoe-primary:hover,
.btn-tahoe-primary:hover {
    background: linear-gradient(135deg, #1a87ff 0%, #0062cc 100%) !important;
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.75) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

#home .div-hero-content a.btn-tahoe-secondary,
#home a.btn-tahoe-secondary,
.btn-tahoe-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 32px !important;
    height: 52px !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, #34c759 0%, #248a3d 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.3px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 25px rgba(52, 199, 89, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
#home .div-hero-content a.btn-tahoe-secondary:hover,
#home a.btn-tahoe-secondary:hover,
.btn-tahoe-secondary:hover {
    background: linear-gradient(135deg, #30d158 0%, #1e7533 100%) !important;
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 15px 35px rgba(52, 199, 89, 0.75) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
