:root {
    --sms-primary:        #1D9E75;
    --sms-primary-light:  #E1F5EE;
    --sms-primary-dark:   #0F6E56;
    --sms-blue:           #185FA5;
    --sms-blue-light:     #E6F1FB;
    --sms-danger:         #E24B4A;
    --sms-danger-light:   #FCEBEB;
    --sms-warning:        #BA7517;
    --sms-warning-light:  #FAEEDA;
    --sms-success:        #639922;
    --sms-surface:        #F8FAF9;
    --sms-text:           #2C2C2A;
    --sms-muted:          #888780;
    --sms-border:         #D3D1C7;
    --sms-radius-card:    12px;
    --sms-radius-input:   8px;
    --sms-radius-badge:   6px;
}

/* ─── NProgress customization ─── */
#nprogress .bar { background: #d4af37; height: 3px; }
#nprogress .peg { box-shadow: 0 0 10px #d4af37, 0 0 5px #d4af37; }
#nprogress .spinner-icon { border-top-color: #d4af37; border-left-color: #d4af37; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.navbar {
    padding: 0.25rem 0.75rem;
    min-height: 40px;
    position: relative;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Dynamic Theme Classes based on background luminance */
.navbar-dark-theme .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.navbar-dark-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-light-theme .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.15) !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
}
.navbar-light-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815, 23, 42, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-light-theme .navbar-brand {
    color: #0f172a !important;
}
.navbar-light-theme .nav-link {
    color: rgba(15, 23, 42, 0.8) !important;
}
.navbar-light-theme .nav-link:hover {
    background: rgba(15, 23, 42, 0.06) !important;
}
.navbar-light-theme .nav-link.active {
    background: rgba(15, 23, 42, 0.1) !important;
}
.navbar-light-theme .btn-toggle {
    color: #0f172a !important;
}
.navbar-light-theme .btn-logout {
    color: #dc3545 !important;
}

.navbar-brand img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}
.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    padding: 0;
    letter-spacing: 0.3px;
}
.navbar-nav {
    display: flex;
    align-items: center;
}
.navbar .nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0 2px;
    padding: 0.3rem 0.6rem !important;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
}
.navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}
.navbar .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}
.navbar-text {
    color: #fff !important;
    font-size: 0.9rem;
    margin: 0 5px;
    padding: 0.5rem 0.5rem !important;
}
.btn-toggle {
    color: #fff;
    border: none;
    background: none;
    font-size: 1rem;
    margin: 0 10px;
}
.btn-logout {
    color: #ff4444;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin: 0 10px;
}
.btn-logout:hover {
    color: #cc3333;
}

.container-fluid {
    flex: 1;
    margin-top: 5px;
    padding: 5px;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card-header {
    color: #fff;
    border-radius: 10px 10px 0 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.light-theme-bg .card-header {
    color: #333 !important;
}
/* Fix for white headers where custom theme defaults to white text */
.card-header.bg-white, .card-header.bg-light {
    color: #333 !important;
}
.card-header.bg-white h1, .card-header.bg-white h2, .card-header.bg-white h3, .card-header.bg-white h4, .card-header.bg-white h5, .card-header.bg-white h6,
.card-header.bg-light h1, .card-header.bg-light h2, .card-header.bg-light h3, .card-header.bg-light h4, .card-header.bg-light h5, .card-header.bg-light h6 {
    color: #333 !important;
}
.card-header .nav-links a {
    color: #fff;
    font-size: 0.9rem;
    margin-left: 15px;
    text-decoration: none;
}
.card-header.bg-white .nav-links a, .card-header.bg-light .nav-links a {
    color: #0d6efd;
}

.table {
    font-size: 0.85rem;
}
.table td, .table th {
    padding: 6px;
    vertical-align: middle;
}

.btn-primary {
    border: none;
    color: #fff;
}
.light-theme-bg .btn-primary {
    color: #333 !important;
}

footer {
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-size: 0.8rem;
}

.error-text {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
}
.is-invalid {
    border-color: #dc3545;
}

.compact-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.compact-filter-form > div {
    margin-bottom: 0 !important;
    flex: 1 1 150px;
}
.compact-filter-form > div:last-child {
    flex: 0 0 auto;
    display: flex;
    gap: 5px;
}
.compact-filter-form label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.compact-filter-form input, .compact-filter-form select {
    font-size: 0.85rem;
    padding: 6px 10px;
}

/* ─── Comprehensive Mobile Responsiveness ─── */
.btn, .nav-link, .btn-toggle { min-height: 25px; }

@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-collapse .navbar-nav { padding: 8px 0; }
    .navbar-collapse .nav-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .navbar-collapse .nav-item:last-child { border-bottom: none; }
    .navbar-collapse .nav-link {
        padding: 12px 16px !important;
        border-radius: 0;
        display: flex;
        align-items: center;
    }
    .navbar-collapse .nav-link i { width: 22px; }
    .navbar-collapse .dropdown-menu {
        background: rgba(0,0,0,0.2);
        border: none;
        border-radius: 0;
        padding: 0;
    }
    .navbar-collapse .dropdown-item {
        color: rgba(255,255,255,0.8);
        padding: 10px 20px 10px 40px;
    }
    .navbar-collapse .dropdown-item:hover { background: rgba(255,255,255,0.08); }
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
        padding: 14px 16px;
    }
    .card-header h3, .card-header h4, .card-header h5 {
        font-size: 1rem;
        margin-bottom: 0;
    }
    .card-header .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .card-header .nav-links a { flex: 1; text-align: center; }

    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table td, .table th { white-space: nowrap; }
    .table { font-size: 0.8rem; }
    .table td, .table th { padding: 8px 10px; }

    .table .btn-sm { padding: 6px 8px; font-size: 0.8rem; }

    .compact-filter-form {
        flex-direction: column;
        gap: 10px;
    }
    .compact-filter-form > div {
        flex: unset !important;
        width: 100%;
    }
    .compact-filter-form > div:last-child {
        flex-direction: row;
        justify-content: flex-end;
    }

    .container-fluid.p-4 { padding: 12px !important; }

    .modal-dialog { margin: 0; max-width: 100%; }
    .modal-content { border-radius: 0; min-height: 100vh; }

    .navbar-text { display: none !important; }
    .btn-toggle, #darkModeToggle { min-height: auto; }
}

@media (max-width: 576px) {
    .navbar-brand img { width: 28px; height: 28px; }
    .navbar-brand { font-size: 0.9rem; }
    .card-body { padding: 12px; }
    .btn { font-size: 0.85rem; }
    .table { font-size: 0.75rem; }
    .table td, .table th { padding: 6px 8px; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }

    .stat-card .icon-box { width: 45px; height: 45px; font-size: 18px; }
    .stat-card h3 { font-size: 1.3rem; }
    .stat-card h6 { font-size: 0.65rem; }

    .form-control, .form-select { font-size: 1rem !important; min-height: 48px; }
    .btn-lg { padding: 12px 20px; }
}

/* Select2 Bootstrap 5 Theme overrides */
.select2-container--open {
    z-index: 9999 !important;
}
.select2-container .select2-selection--single {
    height: 38px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

/* ─── Toast Notification System ─── */
.toast-container-custom {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}
.toast-custom {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-left: 4px solid #28a745;
    animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
    overflow: hidden;
}
.toast-custom.toast-danger { border-left-color: #dc3545; }
.toast-custom.toast-warning { border-left-color: #ffc107; }
.toast-custom.toast-info { border-left-color: #17a2b8; }
.toast-custom.toast-error { border-left-color: #dc3545; }
.toast-custom .toast-icon { font-size: 1.2rem; margin-top: 1px; flex-shrink: 0; }
.toast-custom .toast-body { flex: 1; font-size: 0.88rem; line-height: 1.4; }
.toast-custom .toast-title { font-weight: 700; font-size: 0.9rem; color: #333; margin-bottom: 2px; }
.toast-custom .toast-close {
    background: none; border: none; cursor: pointer;
    color: #aaa; font-size: 1rem; padding: 0; line-height: 1;
    flex-shrink: 0;
}
.toast-custom .toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toastProgress 4s linear forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(120%); }
}
@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ─── Table Enhancement ─── */
.table-clean {
    border-collapse: separate;
    border-spacing: 0;
}
.table-clean thead tr th {
    background: #f8f9ff;
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 14px;
}
.table-clean tbody tr td {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 10px 14px;
    vertical-align: middle;
    transition: background 0.2s ease;
}
.table-clean tbody tr:hover td {
    background: rgba(30, 60, 114, 0.03);
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state .empty-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(30,60,114,0.08), rgba(30,60,114,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #1e3c72;
}
.empty-state h5 { color: #555; font-weight: 600; margin-bottom: 8px; }
.empty-state p { color: #aaa; font-size: 0.9rem; margin-bottom: 20px; }

/* ─── DataTable Controls Alignment ─── */
@media (min-width: 768px) {
    div.dataTables_wrapper div.dt-buttons {
        float: left;
        margin-bottom: 1rem !important;
    }
    
    div.dataTables_wrapper div.dataTables_filter {
        float: right;
        text-align: right;
        margin-bottom: 1rem !important;
    }
    
    div.dataTables_wrapper > .table-responsive,
    div.dataTables_wrapper > table,
    div.dataTables_wrapper > .dataTables_scroll {
        clear: both;
        width: 100% !important;
        margin-top: 0.5rem;
    }
}

/* ─── Premium DataTable Controls & Styling ─── */
div.dataTables_wrapper div.dt-buttons .btn {
    background: #ffffff15 !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 70px !important;
    height: 35px !important;
    margin: 3px !important;
}
div.dataTables_wrapper div.dt-buttons .btn:last-child {
    margin-right: 0 !important;
}
div.dataTables_wrapper div.dt-buttons .btn:hover {
    transform: translateY(-1px) !important;
}

div.dataTables_wrapper div.dataTables_filter input {
    height: 36px !important;
    font-size: 0.875rem !important;
    transition: all 0.25s ease-in-out;
    border: 1px solid #ced4da;
    border-radius: 6px !important;
    padding-right: 24px;
}

/* Search loading spinner indicator */
div.dataTables_wrapper div.dataTables_filter input.loading-search {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' fill='none' stroke='%231e3c72' stroke-width='10' r='35' stroke-dasharray='164.93361431346415 56.97787143782138'%3e%3canimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1s' values='0 50 50%3b360 50 50' keyTimes='0%3b1'/%3e%3c/circle%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px 16px;
}

/* ─── Search Term Highlighting (mark.js) ─── */
@keyframes highlightFade {
    from { background-color: rgba(252, 223, 102, 0); }
    to { background-color: rgba(252, 223, 102, 0.83); }
}
mark {
    animation: highlightFade 0.22s ease-out forwards;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* ─── Card Fullscreen Styles ─── */
.card.card-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1050 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    background-color: #ffffff !important;
    padding: 1.5rem !important;
}
.card.card-fullscreen .card-body {
    height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
}
.card.card-fullscreen .chart-container,
.card.card-fullscreen .chart-container-radial,
.card.card-fullscreen .chart-wrapper {
    height: calc(100vh - 180px) !important;
}
.card-fullscreen-btn {
    border: none !important;
    background: transparent !important;
    color: #6c757d !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.card-fullscreen-btn:hover {
    color: #1e3c72 !important;
    background-color: rgba(0, 0, 0, 0.05) !important;
}
body.has-fullscreen-card {
    overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════════
   DataTables Enhancements
   ═══════════════════════════════════════════════════════════ */

/* ─── Export Progress Overlay ─── */
#dt-export-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: dtOverlayIn 0.2s ease;
}
@keyframes dtOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
#dt-export-overlay .dt-export-card {
    background: #fff;
    border-radius: var(--sms-radius-card);
    padding: 2rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    min-width: 240px;
}
#dt-export-overlay .dt-export-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--sms-primary-light);
    border-top-color: var(--sms-primary);
    border-radius: 50%;
    animation: dtSpin 0.75s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes dtSpin {
    to { transform: rotate(360deg); }
}
#dt-export-overlay .dt-export-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sms-text);
    margin-bottom: 0.25rem;
}
#dt-export-overlay .dt-export-sub {
    font-size: 0.75rem;
    color: var(--sms-muted);
}

/* ─── Compact rows – global default for ALL datatables ─── */
table.dataTable tbody td,
table.dataTable tbody th {
    padding: 4px 10px !important;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ─── Profile link hint (double-click to navigate) ─── */
.dt-profile-link {
    cursor: pointer;
}
.dt-profile-link:hover {
    text-decoration: underline dotted currentColor;
    text-underline-offset: 3px;
}

/* ─── Sticky Header ─── */
/* Uses box-shadow trick – does NOT change border-collapse to preserve table appearance */
table.dataTable.dt-sticky-header thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}


.dataTables_filter input.loading-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%231D9E75' stroke-width='3' fill='none' stroke-dasharray='31.4' stroke-dashoffset='0'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.7s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 30px !important;
}

/* ─── Filter Active Badge ─── */
.dt-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--sms-primary-light);
    color: var(--sms-primary-dark);
    border: 1px solid var(--sms-primary);
    border-radius: 20px;
    padding: 2px 10px 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    margin: 2px;
    white-space: nowrap;
}
.dt-filter-badge .dt-badge-remove {
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.65;
    margin-left: 2px;
}
.dt-filter-badge .dt-badge-remove:hover { opacity: 1; }
.dt-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px 0 6px;
    min-height: 0;
}

/* ─── Synchronized Premium Action Buttons ─── */
.btn-sms-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--sms-radius-input, 8px);
    background-color: var(--sms-primary, #1D9E75) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-sms-notify:hover {
    background-color: var(--sms-primary-dark, #0F6E56) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}
.btn-sms-notify:disabled {
    opacity: 0.55;
    transform: none;
    cursor: not-allowed;
}

.btn-sms-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--sms-radius-input, 8px);
    background-color: var(--sms-blue-light, #E6F1FB);
    color: var(--sms-blue, #185FA5);
    border: 1px solid rgba(24, 95, 165, 0.2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-sms-secondary:hover {
    background-color: var(--sms-blue, #185FA5);
    color: #ffffff;
}

/* ─── Premium Icon-Only Action Buttons ─── */
.btn-sms-action-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--sms-radius-input, 8px) !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    border: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn-sms-action-icon:hover {
    transform: translateY(-2px) !important;
}

/* Premium Gradients and Glow Shadows */
.btn-primary.btn-sms-action-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.25);
}
.btn-primary.btn-sms-action-icon:hover {
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4) !important;
}

.btn-sms-notify.btn-sms-action-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.25);
}
.btn-sms-notify.btn-sms-action-icon:hover {
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4) !important;
}

.btn-success.btn-sms-action-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.25);
}
.btn-success.btn-sms-action-icon:hover {
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4) !important;
}

.btn-info.btn-sms-action-icon {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(6, 182, 212, 0.25);
}
.btn-info.btn-sms-action-icon:hover {
    box-shadow: 0 4px 10px rgba(6, 182, 212, 0.4) !important;
}

.btn-secondary.btn-sms-action-icon {
    background: linear-gradient(135deg, #64748B 0%, #475569 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(100, 116, 139, 0.25);
}
.btn-secondary.btn-sms-action-icon:hover {
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.4) !important;
}

.btn-danger.btn-sms-action-icon {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.25);
}
.btn-danger.btn-sms-action-icon:hover {
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4) !important;
}

.d-flex.gap-1 > form.d-inline {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Premium Dark Tooltips */
.tooltip,
.bs-tooltip-auto,
.premium-dark-tooltip {
    opacity: 1 !important;
}

.tooltip .tooltip-inner,
.premium-dark-tooltip .tooltip-inner {
    background: #0F172A !important;
    background-color: #0F172A !important;
    color: #F8FAFC !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #0F172A !important;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
    border-bottom-color: #0F172A !important;
}
.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
    border-left-color: #0F172A !important;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
    border-right-color: #0F172A !important;
}

/* CSS Fallback Tooltip Engine */
[data-tooltip] {
    position: relative;
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0F172A;
    color: #F8FAFC;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}
[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 112%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-width: 5px 5px 0 5px;
    border-style: solid;
    border-color: #0F172A transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}





