:root {
    --primary-blue: #0797F2;
    --primary-blue-rgb: 7, 151, 242;
    --bg-dark: #000000;
    --bg-secondary: #1c1c1e;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-surface: rgba(28, 28, 30, 0.50);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --danger: #ff453a;
    --success: #32d74b;
    --warning: #ff9f0a;
    --info: #64d2ff;
}

html {
    min-height: 100%;
    background-color: var(--bg-dark);
    background: radial-gradient(circle at 50% 0%, #1a2a3a 0%, #000000 100%);
    background-attachment: fixed;
}

body {
    min-height: 100%;
    background-color: transparent;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: #40b3ff;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%), var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar */
.navbar {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%), rgba(28, 28, 30, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1040;
}

.navbar-brand img {
    filter: drop-shadow(0 0 8px rgba(7, 151, 242, 0.3));
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* Cards */
.card {
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%), var(--glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    overflow: visible;
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    color: var(--text-primary);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.card-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--glass-border);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.card-body {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(7, 151, 242, 0.3);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #008ae6;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(7, 151, 242, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.btn-danger {
    background-color: var(--danger);
    box-shadow: 0 4px 12px rgba(255, 69, 58, 0.3);
}

.btn-success {
    background-color: var(--success);
    box-shadow: 0 4px 12px rgba(50, 215, 75, 0.3);
}

/* Forms */
.form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(7, 151, 242, 0.25);
    color: var(--text-primary);
}

.form-control:disabled, .form-control[readonly] {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table th, .table td {
    border-top: 1px solid var(--glass-border);
    vertical-align: middle;
}

.table thead th {
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Modals - Windows 7 Aero Glass Effect */
.modal-content {
    /* Translucent glass background matching main background (#1a2a3a) */
    background: linear-gradient(
        to bottom,
        rgba(45, 75, 105, 0.90) 0%,
        rgba(35, 60, 90, 0.88) 3%,
        rgba(30, 50, 75, 0.85) 50%,
        rgba(26, 42, 58, 0.88) 100%
    ) !important;
    
    /* Frosted glass blur effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Glass border with subtle highlight */
    border: 1px solid rgba(100, 140, 180, 0.5) !important;
    border-top: 2px solid rgba(150, 190, 230, 0.7) !important;
    border-radius: 12px;
    
    /* Multi-layered shadow for depth and glow */
    box-shadow: 
        /* Inner glossy highlights */
        inset 0 1px 1px 0 rgba(150, 190, 230, 0.5),
        inset 0 -1px 1px 0 rgba(0, 20, 40, 0.3),
        inset 1px 0 1px 0 rgba(100, 150, 200, 0.25),
        inset -1px 0 1px 0 rgba(100, 150, 200, 0.25),
        /* Outer Aero glow */
        0 0 40px rgba(26, 42, 58, 0.6),
        0 0 80px rgba(30, 60, 100, 0.3),
        /* Drop shadow for depth */
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.35);
    
    overflow: hidden;
    position: relative;
}

/* Glass reflection overlay for modals */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.02) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 10px 10px 0 0;
    pointer-events: none;
    z-index: 0;
}

/* Ensure modal content appears above glass overlay */
.modal-content > * {
    position: relative;
    z-index: 1;
}

.modal-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(100, 140, 180, 0.4);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-header .modal-title {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.modal-body {
    color: rgba(255, 255, 255, 0.90);
}

.modal-footer {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(100, 140, 180, 0.4);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
}

.close:hover {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

/* Modal backdrop with subtle blur */
.modal-backdrop.show {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background-color: rgba(0, 20, 40, 0.5);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.alert-primary { background-color: rgba(7, 151, 242, 0.15); color: #64d2ff; }
.alert-success { background-color: rgba(50, 215, 75, 0.15); color: #68e68a; }
.alert-danger { background-color: rgba(255, 69, 58, 0.15); color: #ff867f; }
.alert-warning { background-color: rgba(255, 159, 10, 0.15); color: #ffb340; }

/* Badge */
.badge {
    padding: 0.5em 0.8em;
    border-radius: 6px;
    font-weight: 600;
}

.badge-primary { background-color: rgba(7, 151, 242, 0.2); color: #64d2ff; }
.badge-success { background-color: rgba(50, 215, 75, 0.2); color: #32d74b; }
.badge-danger { background-color: rgba(255, 69, 58, 0.2); color: #ff453a; }
.badge-warning { background-color: rgba(255, 159, 10, 0.2); color: #ff9f0a; }

/* Footer */
footer.footer {
    background: transparent;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--primary-blue);
}

/* Pagination */
.page-item.disabled .page-link, .pagination .disabled.page-number .page-link {
    background-color: transparent;
    border-color: var(--glass-border);
    color: var(--text-secondary);
}

.page-link {
    background-color: transparent;
    border-color: var(--glass-border);
    color: var(--primary-blue);
}

.page-link:hover {
    background-color: rgba(7, 151, 242, 0.1);
    border-color: var(--glass-border);
    color: var(--primary-blue);
}

.page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* SweetAlert2 Overrides - Windows 7 Aero Glass Effect */
/* Using high specificity selectors to override dynamically injected SweetAlert2 CSS */
html body .swal2-container .swal2-popup.swal2-modal,
html body .swal2-container .swal2-popup,
.swal2-popup.swal2-modal,
.swal2-popup {
    /* Translucent glass background with dark blue-gray tint matching main background (#1a2a3a) */
    background: linear-gradient(
        to bottom,
        rgba(45, 75, 105, 0.88) 0%,
        rgba(35, 60, 90, 0.85) 3%,
        rgba(30, 50, 75, 0.82) 50%,
        rgba(26, 42, 58, 0.85) 100%
    ) !important;
    
    /* Frosted glass blur effect */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    
    /* Glass border with subtle highlight */
    border: 1px solid rgba(100, 140, 180, 0.5) !important;
    border-top: 2px solid rgba(150, 190, 230, 0.7) !important;
    border-radius: 12px !important;
    
    /* Multi-layered shadow for depth and glow */
    box-shadow: 
        /* Inner glossy highlights */
        inset 0 1px 1px 0 rgba(150, 190, 230, 0.5),
        inset 0 -1px 1px 0 rgba(0, 20, 40, 0.3),
        inset 1px 0 1px 0 rgba(100, 150, 200, 0.25),
        inset -1px 0 1px 0 rgba(100, 150, 200, 0.25),
        /* Outer Aero glow - matching main background blue */
        0 0 40px rgba(26, 42, 58, 0.6),
        0 0 80px rgba(30, 60, 100, 0.3),
        /* Drop shadow for depth */
        0 15px 50px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.35) !important;
    
    /* Smooth animation */
    transition: all 0.3s ease !important;
    
    /* Ensure proper overflow for the glass effect */
    overflow: visible !important;
}

/* Glass reflection overlay effect - subtle for dark glass */
html body .swal2-container .swal2-popup::before,
.swal2-popup::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 55% !important;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.10) 30%,
        rgba(255, 255, 255, 0.03) 60%,
        rgba(255, 255, 255, 0) 100%
    ) !important;
    border-radius: 10px 10px 0 0 !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Ensure content appears above the glass overlay */
html body .swal2-container .swal2-popup > *,
.swal2-popup > * {
    position: relative !important;
    z-index: 1 !important;
}

/* Light text colors for dark glass background */
html body .swal2-container .swal2-popup .swal2-title,
.swal2-title {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
    font-weight: 600 !important;
}

html body .swal2-container .swal2-popup .swal2-html-container,
html body .swal2-container .swal2-popup .swal2-content,
.swal2-content, 
.swal2-html-container {
    color: rgba(255, 255, 255, 0.90) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

html body .swal2-container .swal2-popup .swal2-styled.swal2-confirm,
.swal2-styled.swal2-confirm {
    background: linear-gradient(
        to bottom,
        rgba(130, 200, 255, 0.95) 0%,
        rgba(80, 160, 235, 0.95) 50%,
        rgba(50, 130, 210, 0.95) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 6px !important;
    color: white !important;
    text-shadow: 0 -1px 0 rgba(0, 50, 100, 0.4) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 50, 100, 0.2),
        0 2px 8px rgba(0, 100, 200, 0.35) !important;
    transition: all 0.2s ease !important;
}

html body .swal2-container .swal2-popup .swal2-styled.swal2-confirm:hover,
.swal2-styled.swal2-confirm:hover {
    background: linear-gradient(
        to bottom,
        rgba(150, 215, 255, 1) 0%,
        rgba(100, 180, 250, 1) 50%,
        rgba(70, 150, 230, 1) 100%
    ) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 50, 100, 0.2),
        0 4px 15px rgba(0, 100, 200, 0.5) !important;
}

html body .swal2-container .swal2-popup .swal2-styled.swal2-cancel,
.swal2-styled.swal2-cancel {
    background: linear-gradient(
        to bottom,
        rgba(245, 245, 250, 0.95) 0%,
        rgba(225, 225, 235, 0.90) 50%,
        rgba(200, 200, 215, 0.90) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px !important;
    color: rgba(0, 30, 60, 0.85) !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

html body .swal2-container .swal2-popup .swal2-styled.swal2-cancel:hover,
.swal2-styled.swal2-cancel:hover {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(240, 240, 248, 0.98) 50%,
        rgba(220, 220, 235, 0.98) 100%
    ) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Icon styling for Aero theme */
html body .swal2-container .swal2-popup .swal2-icon.swal2-success,
.swal2-icon.swal2-success {
    border-color: rgba(40, 160, 80, 0.8) !important;
    color: rgba(40, 160, 80, 1) !important;
}

html body .swal2-container .swal2-popup .swal2-icon.swal2-success [class^='swal2-success-line'],
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: rgba(40, 160, 80, 1) !important;
}

html body .swal2-container .swal2-popup .swal2-icon.swal2-success .swal2-success-ring,
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(40, 160, 80, 0.4) !important;
}

/* Success icon circular lines need background matching the popup */
html body .swal2-container .swal2-popup .swal2-icon.swal2-success [class^='swal2-success-circular-line'],
.swal2-icon.swal2-success [class^='swal2-success-circular-line'] {
    background-color: transparent !important;
}

html body .swal2-container .swal2-popup .swal2-icon.swal2-success .swal2-success-fix,
.swal2-icon.swal2-success .swal2-success-fix {
    background-color: transparent !important;
}

html body .swal2-container .swal2-popup .swal2-icon.swal2-warning,
.swal2-icon.swal2-warning {
    border-color: rgba(235, 160, 50, 0.85) !important;
    color: rgba(235, 140, 20, 1) !important;
}

html body .swal2-container .swal2-popup .swal2-icon.swal2-error,
.swal2-icon.swal2-error {
    border-color: rgba(230, 70, 70, 0.85) !important;
}

html body .swal2-container .swal2-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'],
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: rgba(230, 70, 70, 1) !important;
}

/* Backdrop with subtle blur for Aero effect */
html body .swal2-container,
.swal2-container {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Make backdrop slightly visible with blue tint */
html body .swal2-container.swal2-backdrop-show,
.swal2-container.swal2-backdrop-show {
    background: rgba(0, 30, 60, 0.35) !important;
}

/* DataTables */
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_processing, .dataTables_wrapper .dataTables_paginate {
    color: var(--text-secondary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-blue) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background-color: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background-color: #3a3a3c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #48484a;
}

/* Utilities */
.text-muted {
    color: var(--text-secondary) !important;
}

.bg-white {
    background-color: var(--glass-surface) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.box-shadow {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Dropdowns - Windows 7 Aero Glass Effect */
.dropdown-menu {
    /* Translucent glass background matching main background */
    background: linear-gradient(
        to bottom,
        rgba(45, 75, 105, 0.92) 0%,
        rgba(35, 60, 90, 0.90) 10%,
        rgba(30, 50, 75, 0.88) 50%,
        rgba(26, 42, 58, 0.90) 100%
    ) !important;
    
    /* Frosted glass blur effect */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Glass border with subtle highlight */
    border: 1px solid rgba(100, 140, 180, 0.5) !important;
    border-top: 2px solid rgba(150, 190, 230, 0.6) !important;
    border-radius: 10px;
    
    /* Multi-layered shadow for depth and glow */
    box-shadow: 
        /* Inner glossy highlights */
        inset 0 1px 1px 0 rgba(150, 190, 230, 0.4),
        inset 0 -1px 1px 0 rgba(0, 20, 40, 0.2),
        /* Outer Aero glow */
        0 0 25px rgba(26, 42, 58, 0.5),
        0 0 50px rgba(30, 60, 100, 0.2),
        /* Drop shadow for depth */
        0 10px 35px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    
    z-index: 1050;
    padding: 6px;
    overflow: hidden;
    position: relative;
}

/* Glass reflection overlay for dropdowns */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    z-index: 0;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin: 2px 0;
    padding: 8px 16px;
    width: auto;
    position: relative;
    z-index: 1;
    transition: all 0.15s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    /* Glossy blue button effect on hover */
    background: linear-gradient(
        to bottom,
        rgba(100, 170, 240, 0.9) 0%,
        rgba(60, 140, 220, 0.9) 50%,
        rgba(40, 120, 200, 0.9) 100%
    );
    color: white;
    text-shadow: 0 -1px 0 rgba(0, 50, 100, 0.4);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 6px rgba(0, 100, 200, 0.3);
}

.dropdown-item:active {
    background: linear-gradient(
        to bottom,
        rgba(60, 140, 220, 0.95) 0%,
        rgba(40, 120, 200, 0.95) 50%,
        rgba(30, 100, 180, 0.95) 100%
    );
}

.dropdown-divider {
    border-top: 1px solid rgba(100, 140, 180, 0.4);
    margin: 6px 0;
}

.dropdown-header {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.85em;
    padding: 6px 16px;
}

/* Tooltips - Windows 7 Aero Glass Effect */
.tooltip .tooltip-inner {
    /* Translucent glass background */
    background: linear-gradient(
        to bottom,
        rgba(45, 75, 105, 0.95) 0%,
        rgba(30, 50, 75, 0.92) 50%,
        rgba(26, 42, 58, 0.95) 100%
    ) !important;
    
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    
    border: 1px solid rgba(100, 140, 180, 0.5);
    border-top: 1px solid rgba(150, 190, 230, 0.6);
    border-radius: 6px;
    
    box-shadow: 
        inset 0 1px 0 rgba(150, 190, 230, 0.3),
        0 0 20px rgba(26, 42, 58, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
    
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    font-size: 0.9em;
}

.tooltip .arrow::before {
    border-color: transparent;
}

.bs-tooltip-top .arrow::before,
.bs-tooltip-auto[x-placement^="top"] .arrow::before {
    border-top-color: rgba(45, 75, 105, 0.95) !important;
}

.bs-tooltip-bottom .arrow::before,
.bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
    border-bottom-color: rgba(26, 42, 58, 0.95) !important;
}

.bs-tooltip-left .arrow::before,
.bs-tooltip-auto[x-placement^="left"] .arrow::before {
    border-left-color: rgba(35, 60, 90, 0.95) !important;
}

.bs-tooltip-right .arrow::before,
.bs-tooltip-auto[x-placement^="right"] .arrow::before {
    border-right-color: rgba(35, 60, 90, 0.95) !important;
}

/* Popovers - Windows 7 Aero Glass Effect */
.popover {
    /* Translucent glass background */
    background: linear-gradient(
        to bottom,
        rgba(45, 75, 105, 0.92) 0%,
        rgba(35, 60, 90, 0.90) 10%,
        rgba(30, 50, 75, 0.88) 50%,
        rgba(26, 42, 58, 0.90) 100%
    ) !important;
    
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border: 1px solid rgba(100, 140, 180, 0.5) !important;
    border-top: 2px solid rgba(150, 190, 230, 0.6) !important;
    border-radius: 10px;
    
    box-shadow: 
        inset 0 1px 1px 0 rgba(150, 190, 230, 0.4),
        inset 0 -1px 1px 0 rgba(0, 20, 40, 0.2),
        0 0 30px rgba(26, 42, 58, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3);
    
    overflow: hidden;
    position: relative;
}

/* Glass reflection overlay for popovers */
.popover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    z-index: 0;
}

.popover-header {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(100, 140, 180, 0.4);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    position: relative;
    z-index: 1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.popover-body {
    color: rgba(255, 255, 255, 0.90);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.popover .arrow::before,
.popover .arrow::after {
    border-color: transparent;
}

.bs-popover-top .arrow::after,
.bs-popover-auto[x-placement^="top"] .arrow::after {
    border-top-color: rgba(45, 75, 105, 0.92) !important;
}

.bs-popover-bottom .arrow::after,
.bs-popover-auto[x-placement^="bottom"] .arrow::after {
    border-bottom-color: rgba(26, 42, 58, 0.90) !important;
}

.bs-popover-left .arrow::after,
.bs-popover-auto[x-placement^="left"] .arrow::after {
    border-left-color: rgba(35, 60, 90, 0.90) !important;
}

.bs-popover-right .arrow::after,
.bs-popover-auto[x-placement^="right"] .arrow::after {
    border-right-color: rgba(35, 60, 90, 0.90) !important;
}

/* jQuery UI Dialog - Windows 7 Aero Glass Effect */
.ui-dialog {
    /* Translucent glass background */
    background: linear-gradient(
        to bottom,
        rgba(45, 75, 105, 0.90) 0%,
        rgba(35, 60, 90, 0.88) 3%,
        rgba(30, 50, 75, 0.85) 50%,
        rgba(26, 42, 58, 0.88) 100%
    ) !important;
    
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border: 1px solid rgba(100, 140, 180, 0.5) !important;
    border-top: 2px solid rgba(150, 190, 230, 0.7) !important;
    border-radius: 12px;
    
    box-shadow: 
        inset 0 1px 1px 0 rgba(150, 190, 230, 0.5),
        inset 0 -1px 1px 0 rgba(0, 20, 40, 0.3),
        0 0 40px rgba(26, 42, 58, 0.6),
        0 15px 50px rgba(0, 0, 0, 0.5);
    
    padding: 0 !important;
    overflow: hidden;
}

.ui-dialog .ui-dialog-titlebar {
    background: rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(100, 140, 180, 0.4);
    border-radius: 10px 10px 0 0;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ui-dialog .ui-dialog-title {
    color: rgba(255, 255, 255, 0.95);
}

.ui-dialog .ui-dialog-content {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.90);
}

.ui-dialog .ui-dialog-buttonpane {
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(100, 140, 180, 0.4);
}
