/* AdminLTE-Inspired Sleek Theme & Modern UI for MomCare SC */
:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e293b;
    --sidebar-hover-bg: #334155;
    --sidebar-active-bg: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    --topbar-height: 64px;
    --primary-color: #ec4899;
    --primary-gradient: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
    --primary-soft: #fdf2f8;
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

html, body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Bootstrap 5 Spacing Polyfills (Menghandle utility gap, padding, margin berdesimal agar tidak mepet) */
.gap-0\.5, [class*="gap-0.5"], .gap-0-5 { gap: 0.25rem !important; }
.gap-1\.5, [class*="gap-1.5"], .gap-1-5 { gap: 0.375rem !important; }
.gap-2\.5, [class*="gap-2.5"], .gap-2-5 { gap: 0.625rem !important; }
.gap-3\.5, [class*="gap-3.5"], .gap-3-5 { gap: 0.875rem !important; }

.p-0\.5, [class*="p-0.5"] { padding: 0.125rem !important; }
.p-1\.5, [class*="p-1.5"] { padding: 0.375rem !important; }
.p-2\.5, [class*="p-2.5"] { padding: 0.625rem !important; }

.px-0\.5, [class*="px-0.5"] { padding-left: 0.125rem !important; padding-right: 0.125rem !important; }
.px-1\.5, [class*="px-1.5"] { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2\.5, [class*="px-2.5"] { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }

.py-0\.5, [class*="py-0.5"] { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1\.5, [class*="py-1.5"] { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5, [class*="py-2.5"] { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }

.mb-0\.5, [class*="mb-0.5"] { margin-bottom: 0.125rem !important; }
.mt-0\.5, [class*="mt-0.5"] { margin-top: 0.125rem !important; }
.ms-0\.5, [class*="ms-0.5"] { margin-left: 0.125rem !important; }
.me-0\.5, [class*="me-0.5"] { margin-right: 0.125rem !important; }

.mb-1\.5, [class*="mb-1.5"] { margin-bottom: 0.375rem !important; }
.mt-1\.5, [class*="mt-1.5"] { margin-top: 0.375rem !important; }
.ms-1\.5, [class*="ms-1.5"] { margin-left: 0.375rem !important; }
.me-1\.5, [class*="me-1.5"] { margin-right: 0.375rem !important; }


/* Layout Wrapper */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* AdminLTE-Style Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: #f8fafc;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.6);
}

.brand-logo-icon {
    width: 42px;
    height: 42px;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    border: none !important;
    flex-shrink: 0;
}

.sidebar-user {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.3);
}

.sidebar-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    position: relative;
}

.status-indicator-online {
    width: 11px;
    height: 11px;
    background-color: #10b981;
    border: 2px solid #1e293b;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.sidebar-menu {
    padding: 1rem 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.menu-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.85rem;
    color: #cbd5e1;
    border-radius: 0.6rem;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-nav-link i {
    width: 24px;
    font-size: 1.05rem;
    margin-right: 0.65rem;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
    color: #ffffff;
    background-color: var(--sidebar-hover-bg);
}

.sidebar-nav-link:hover i {
    color: #ec4899;
}

.sidebar-nav-link.active {
    color: #ffffff;
    background: var(--sidebar-active-bg);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
    font-weight: 600;
}

.sidebar-nav-link.active i {
    color: #ffffff;
}

/* Content Area */
.app-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden !important;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Navbar */
.app-topbar {
    height: var(--topbar-height);
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: #f1f5f9;
    color: #ec4899;
}

.content-body {
    padding: 1.5rem;
    flex-grow: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

/* Sidebar Collapsed State */
body.sidebar-collapsed .app-sidebar {
    margin-left: calc(-1 * var(--sidebar-width));
}

body.sidebar-collapsed .app-main {
    margin-left: 0;
}

/* Responsive Mobile Sidebar & Layout */
@media (max-width: 991.98px) {
    .app-sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    }
    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    body.sidebar-mobile-open .app-sidebar {
        margin-left: 0;
    }
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.6);
        z-index: 1035;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .app-topbar {
        padding: 0 1rem;
        height: 58px;
        width: 100% !important;
        max-width: 100% !important;
    }
    .content-body {
        padding: 1.25rem 1rem;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 575.98px) {
    .app-topbar {
        padding: 0 1rem;
        height: 56px;
    }
    .content-body {
        padding: 1.25rem 1rem;
    }
    .custom-card.p-4 {
        padding: 1.5rem 1.25rem !important;
    }
    .custom-card {
        border-radius: 1.15rem;
    }
    .stat-card {
        padding: 0.85rem 0.75rem !important;
    }
    .stat-card h3 {
        font-size: 1.35rem !important;
    }
    .stat-card .fs-5 {
        font-size: 1rem !important;
        padding: 0.4rem !important;
    }
    .stat-card small, .stat-card a {
        font-size: 0.72rem !important;
    }
}

/* Modern Card Styles */
.custom-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card {
    border-radius: 1rem;
    border: none;
    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

/* Animated Alert Pulse */
@keyframes pulseRed {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.animate-pulse-red {
    animation: pulseRed 2s infinite;
}

/* Brand Text Gradient */
.brand-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ec4899 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Custom Button */
.btn-primary-custom {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    line-height: 1.4;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-primary-custom,
.btn-primary-custom > i,
.btn-primary-custom > span:not(.badge) {
    color: #ffffff !important;
}

.btn-primary-custom .badge.bg-white,
.btn-primary-custom .badge.bg-light {
    color: #0f172a !important;
    background-color: #ffffff !important;
    font-weight: 800 !important;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:active {
    background: linear-gradient(135deg, #db2777 0%, #c026d3 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.4);
}

.stat-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.25s ease;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

.stat-card .stat-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Modern Metric / KPI Stat Cards */
.stat-card-modern {
    background: #ffffff;
    border-radius: 1.15rem;
    border: 1px solid #e2e8f0;
    padding: 1.35rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Card Accent Variations with sleek top line and subtle tint */
.stat-card-modern.card-accent-blue {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-color: #dbeafe;
}
.stat-card-modern.card-accent-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card-modern.card-accent-amber {
    background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
    border-color: #fed7aa;
}
.stat-card-modern.card-accent-amber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.stat-card-modern.card-accent-red {
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
    border-color: #fecaca;
}
.stat-card-modern.card-accent-red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.stat-card-modern.card-accent-green {
    background: linear-gradient(180deg, #f8fefb 0%, #ffffff 100%);
    border-color: #bbf7d0;
}
.stat-card-modern.card-accent-green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-card-modern .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-card-modern:hover .stat-icon {
    transform: scale(1.08);
}

@media (max-width: 575.98px) {
    .stat-card-modern {
        padding: 1.15rem 0.95rem !important;
        border-radius: 1.1rem;
    }
    .stat-card-modern .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.92rem;
        border-radius: 8px;
    }
}

/* Modals */
.modal-content {
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem auto;
    }
    .modal-content {
        border-radius: 1rem;
    }
    .modal-header {
        padding: 1rem;
    }
    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

/* Modern Table Styling */
.table-modern {
    --bs-table-bg: transparent;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    vertical-align: middle;
}

.table-modern tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
    transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover td {
    background-color: #faf5ff40;
}

.table-modern tbody tr.row-danger-alert td {
    background-color: #fff1f2;
}

@media (max-width: 767.98px) {
    .table-modern thead th {
        padding: 0.65rem 0.65rem;
        font-size: 0.70rem;
    }
    .table-modern tbody td {
        padding: 0.65rem 0.65rem;
        font-size: 0.82rem;
    }
}

/* DataTables Modern Filter & Pagination Controls */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 1.1rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 0.6rem;
    border: 1.5px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1.1rem;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.6rem;
    border: 1.5px solid #e2e8f0;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    color: #1e293b;
    margin-left: 0.5rem;
    outline: none;
    transition: all 0.2s ease;
    min-width: 220px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 1rem;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.85rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .page-link {
    border-radius: 0.5rem !important;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* DataTables Responsive Adjustments */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length {
        font-size: 0.78rem;
        color: #64748b;
        margin-bottom: 0.5rem;
    }
    .dataTables_wrapper .dataTables_length select {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: 0.75rem;
        width: 100%;
        text-align: left !important;
    }
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 0;
        font-size: 0.8rem;
        font-weight: 600;
        color: #475569;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 0.75rem;
        padding: 0.35rem 0.75rem;
        gap: 0.5rem;
    }
    .dataTables_wrapper .dataTables_filter input {
        border: none !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 0.15rem 0;
        font-size: 0.82rem;
        width: 100%;
        flex-grow: 1;
        margin: 0;
    }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
    }
    .dataTables_wrapper .dataTables_paginate .pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 3px;
    }
}

/* Horizontal Scrollable Filter Chips for Mobile (Hemat Tempat) */
.filter-chips-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 3px;
    padding-bottom: 6px;
    padding-right: 1.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-shrink: 1;
}
.filter-chips-scroll::-webkit-scrollbar {
    display: none;
}
@media (min-width: 992px) {
    .filter-chips-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
        white-space: normal;
        padding-right: 0;
    }
    .border-lg-end {
        border-right: 1px solid #e2e8f0 !important;
    }
}

.filter-chips-scroll .btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.filter-chips-scroll .btn i {
    margin-right: 4px !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.filter-chips-scroll .btn .badge {
    margin-left: 4px !important;
    flex-shrink: 0 !important;
}

@media (max-width: 767.98px) {
    .desktop-table-card,
    #tablePeserta_wrapper,
    #tableAmbulance_wrapper,
    #tableUsers_wrapper,
    #tableLaporan_wrapper {
        display: none !important;
    }
    .content-body > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Smooth Table Responsive & Prevent Dropdown Clipping */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
}

/* Prevent dropdown menu inside tables from being clipped by overflow */
.table-responsive:has(.dropdown-menu.show),
.table-responsive.dropdown-open {
    overflow: visible !important;
}

.desktop-table-card {
    overflow: visible !important;
}

.desktop-table-card .table-responsive {
    min-height: 280px;
    padding-bottom: 2.5rem;
}

.table-modern .dropdown-menu {
    z-index: 1065 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
}

/* Action Button Pills */
.btn-action-detail {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-action-detail:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-action-wa {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action-wa:hover {
    background: #16a34a;
    color: #ffffff;
    border-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-action-delete {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecdd3;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action-delete:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.hover-pink:hover {
    color: #ec4899 !important;
}

/* Pink Color Utilities */
.text-pink {
    color: #db2777 !important;
}

.bg-pink-subtle {
    background-color: #fdf2f8 !important;
}

.border-pink-subtle {
    border-color: #fbcfe8 !important;
}

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.transition-all {
    transition: all 0.2s ease-in-out !important;
}

/* Responsive Width Utilities (Bootstrap 5 Helper Extension) */
@media (min-width: 576px) {
    .w-sm-auto { width: auto !important; }
    .w-sm-25 { width: 25% !important; }
    .w-sm-50 { width: 50% !important; }
    .w-sm-75 { width: 75% !important; }
    .w-sm-100 { width: 100% !important; }
}

@media (min-width: 768px) {
    .w-md-auto { width: auto !important; }
    .w-md-25 { width: 25% !important; }
    .w-md-50 { width: 50% !important; }
    .w-md-75 { width: 75% !important; }
    .w-md-100 { width: 100% !important; }
}

@media (min-width: 992px) {
    .w-lg-auto { width: auto !important; }
    .w-lg-25 { width: 25% !important; }
    .w-lg-50 { width: 50% !important; }
    .w-lg-75 { width: 75% !important; }
    .w-lg-100 { width: 100% !important; }
}

@media (min-width: 1200px) {
    .w-xl-auto { width: auto !important; }
    .w-xl-100 { width: 100% !important; }
}

/* ======================================================== */
/* Submit Protection & Button Loading State Styles          */
/* ======================================================== */
.btn-submitting,
.btn.btn-submitting {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.82 !important;
    filter: saturate(0.85);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    user-select: none !important;
}

.btn-submitting .spinner-border {
    border-width: 0.15em;
    vertical-align: -0.125em;
}

button[disabled],
input[type="submit"][disabled],
.btn.disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

