/* Global Layout Safety Defaults - RESTORED */
html,
body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.container,
.container-fluid {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 
 * Maa Om Sahyog Samiti - Premium Glassmorphism Theme 
 * Version: 2.0
 */

:root {
    /* Brand Colors */
    --primary-color: #4e54c8;
    --primary-gradient: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    --secondary-color: #00bcd4;
    --success-color: #00b09b;
    --warning-color: #fca130;
    --danger-color: #f953c6;

    /* Backgrounds */
    --bg-body: #f0f2f5;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-dark: rgba(20, 20, 20, 0.85);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;

    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --backdrop-blur: blur(12px);
    --border-glass: 1px solid rgba(255, 255, 255, 0.3);
}

/* Global Reset */
body {
    background: var(--bg-body);
    font-family: var(--font-body);
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Background Decoration */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(78, 84, 200, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- Glassmorphism Utils --- */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--border-glass);
    box-shadow: var(--shadow-sm);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Disable hover effects on modal content */
.modal-content.glass-card:hover,
.modal .glass-card:hover {
    transform: none !important;
}

/* Ensure modal has proper z-index and interactivity */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-content {
    pointer-events: auto !important;
}

.modal-content input,
.modal-content textarea,
.modal-content select,
.modal-content button {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

.card {
    border: none;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 700;
    padding: 1.2rem 1.5rem;
    font-family: var(--font-heading);
}

/* --- Navbar (Premium) --- */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: rgba(30, 60, 114, 0.95) !important;
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s, left 0.3s;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* --- Buttons --- */
.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.6);
    transform: translateY(-2px);
}

/* --- Forms --- */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(78, 84, 200, 0.1);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

/* --- Tables --- */
.table-responsive {
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid #eee;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
}

.table-hover tbody tr:hover {
    background-color: rgba(78, 84, 200, 0.03);
}

/* --- Mobile Bottom Nav (Premium Modern UI) --- */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    /* Premium glassmorphism background */
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.98) 100%) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    /* Enhanced shadow for depth */
    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.08),
        0 -2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    /* Safe area support for notch devices */
    padding-bottom: max(env(safe-area-inset-bottom), 8px);
    padding-top: 8px;
    padding-top: 8px;
    z-index: 1020 !important;
    /* Below Top Navbar (1030) and Mobile Menu (1025) */
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    /* Increased height for thumb-friendly usage */
    min-height: 80px;
    /* Taller area */
    height: auto;
    transform: translateZ(0) !important;
    /* GPU acceleration */
    pointer-events: auto !important;
    touch-action: auto !important;
    -webkit-tap-highlight-color: transparent;
    /* Smooth appearance animation */
    animation: slideUpNav 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

@keyframes slideUpNav {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Layout Conflict Fixes (Top vs Bottom Nav) --- */

/* 1. Ensure Body has spacing for fixed elements */
/* 1. Ensure Body has spacing for fixed elements */
body {
    padding-top: 80px !important;
    /* Space for Top Navbar */
}

/* Mobile-only bottom padding */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 90px !important;
        /* Space for Mobile Bottom Nav */
    }
}

/* 2. Top Navbar - Higher Z-Index */
.navbar.fixed-top {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030 !important;
    min-height: 70px;
    /* Safer for desktop content */
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 3. Mobile Hamburger Menu - Full Width Overlay */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        /* Anchor to bottom of navbar */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1025;
        /* Below Navbar, Above Content */
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Ensure no visual glitch on collapse */
    .navbar-collapse.collapsing {
        position: absolute;
        left: 0;
        width: 100%;
        top: 100%;
        background: white;
        z-index: 1025;
    }
}

/* 4. Disable Bottom Nav on Desktop */
@media (min-width: 992px) {

    .mobile-bottom-nav,
    .d-lg-none {
        display: none !important;
    }
}

.mobile-bottom-nav * {
    pointer-events: auto !important;
}

/* === Nav Container Layout - Robust Grid === */
.nav-container {
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
}

/* Agent Nav: 5 Columns (Home, Settings, FAB, History, Profile) */
.nav-container.agent-nav {
    grid-template-columns: 1fr 1fr 72px 1fr 1fr;
    /* Fixed center for FAB */
    align-items: end;
    padding-bottom: 6px;
}

/* User Nav: 4 Columns (Home, History, Settings, Profile) */
.nav-container.user-nav {
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding-bottom: 0;
}



/* === Center FAB Container === */
.nav-fab-container {
    position: relative;
    grid-column: 3;
    /* Always 3rd column in Agent Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    z-index: 20;
    margin-bottom: 15px;
    /* Precise lift */
}

/* FAB Button - Floating Style */
.nav-fab-button {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: translateY(-25px);
    /* Logical float */
    margin-bottom: -22px;
    /* Space compensation */
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-fab-button:active {
    transform: translateY(-22px) scale(0.95);
}

/* FAB Glow Effect */
.fab-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 84, 200, 0.4) 0%, transparent 70%);
    opacity: 0.6;
    animation: fabGlowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fabGlowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* FAB Inner Circle */
.fab-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.95);
    z-index: 2;
}

.nav-fab-button:active .fab-inner i {
    transform: rotate(45deg);
}

/* FAB Icon */
.fab-inner i {
    color: #fff;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

/* FAB Active State */
.nav-fab-button.active .fab-inner {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
}

.nav-fab-button.active .fab-glow {
    background: radial-gradient(circle, rgba(17, 153, 142, 0.4) 0%, transparent 70%);
}

/* FAB Label */
.fab-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Nav Item - Enhanced for thumb-friendly tapping */
/* Nav Item - Enhanced for thumb-friendly tapping */
.mobile-nav-item {
    color: #8e99a4;
    padding: 6px 0;
    /* Reduced horizontal padding, handled by grid */
    width: 100%;
    /* Fill grid cell */
    min-width: auto;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 56px;
    border-radius: 16px;
    margin: 0 4px;
    /* Optimized transitions for instant feel */
    transition:
        color 0.15s ease-out,
        background 0.2s ease-out,
        transform 0.15s cubic-bezier(0.2, 0, 0, 1);
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-decoration: none !important;
    /* Badge positioning context */
    isolation: isolate;
}

/* Hover state - subtle highlight */
.mobile-nav-item:hover {
    color: #5c6bc0;
    background: rgba(78, 84, 200, 0.06);
}

/* Active (pressed) state - instant tactile feedback */
.mobile-nav-item:active {
    transform: scale(0.92);
    background: rgba(78, 84, 200, 0.12);
    transition-duration: 0.05s;
}

/* Selected/Active tab state */
.mobile-nav-item.active {
    color: var(--primary-color) !important;
    background: linear-gradient(180deg,
            rgba(78, 84, 200, 0.08) 0%,
            rgba(78, 84, 200, 0.15) 100%);
}

/* Glow effect for active state */
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    box-shadow:
        0 0 20px rgba(78, 84, 200, 0.25),
        inset 0 0 12px rgba(78, 84, 200, 0.1);
    opacity: 1;
    pointer-events: none;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Top indicator bar for active state */
.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 0 0 4px 4px;
    box-shadow:
        0 2px 8px rgba(78, 84, 200, 0.4),
        0 4px 16px rgba(78, 84, 200, 0.2);
    animation: indicatorPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes indicatorPop {
    from {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}

/* Icon styling */
.mobile-nav-item i {
    font-size: 1.35rem;
    margin-bottom: 4px;
    transition:
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.15s ease-out;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* Active icon - lifted and emphasized */
.mobile-nav-item.active i {
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(78, 84, 200, 0.3));
}

/* Label styling */
.mobile-nav-item small {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    opacity: 0.9;
    pointer-events: none;
    transition:
        opacity 0.2s ease-out,
        transform 0.2s ease-out;
    position: relative;
    z-index: 1;
}

.mobile-nav-item.active small {
    opacity: 1;
    transform: scale(1.05);
}

/* Badge notification support (future-ready) */
.mobile-nav-item .nav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(calc(50% + 10px));
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 65, 108, 0.4);
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.mobile-nav-item .nav-badge.dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    border-radius: 50%;
}

@keyframes badgePop {
    from {
        transform: translateX(calc(50% + 10px)) scale(0);
    }

    to {
        transform: translateX(calc(50% + 10px)) scale(1);
    }
}

/* FAB button enhancement for agent panel */
.mobile-bottom-nav .btn-primary.rounded-circle {
    box-shadow:
        0 4px 20px rgba(78, 84, 200, 0.4),
        0 8px 32px rgba(78, 84, 200, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.2s ease-out;
}

.mobile-bottom-nav .btn-primary.rounded-circle:active {
    transform: scale(0.9) !important;
    box-shadow:
        0 2px 10px rgba(78, 84, 200, 0.3),
        0 4px 16px rgba(78, 84, 200, 0.15);
}

/* Ripple effect on tap */
.mobile-nav-item::after {
    pointer-events: none;
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    .mobile-bottom-nav {
        background: linear-gradient(180deg,
                rgba(30, 30, 35, 0.95) 0%,
                rgba(25, 25, 30, 0.98) 100%) !important;
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .mobile-nav-item {
        color: #8e99a4;
    }

    .mobile-nav-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .mobile-nav-item.active {
        background: linear-gradient(180deg,
                rgba(78, 84, 200, 0.15) 0%,
                rgba(78, 84, 200, 0.25) 100%);
    }
}

/* Landscape mode optimization */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .mobile-bottom-nav {
        min-height: 56px;
        padding-top: 4px;
    }

    .mobile-nav-item {
        height: 48px;
        padding: 4px 8px;
    }

    .mobile-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .mobile-nav-item small {
        font-size: 0.55rem;
    }
}

/* --- Utilities --- */
/* --- Utilities --- */
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%) !important;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Animation Classes */
/* Animation Classes - CHANGED to Visible by Default for Stability */
.animate-fade-up {
    opacity: 1;
    /* Was 0 */
    transform: none;
    /* Was translateY(20px) */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: none;
}

/* CRITICAL FIX: Remove transforms when modal is open to fix stacking context */
body.modal-open .animate-fade-up,
body.modal-open .glass-card,
body.modal-open .container {
    transform: none !important;
}

/* Ensure modal has highest z-index and is clickable */
body.modal-open .modal {
    z-index: 1055 !important;
    pointer-events: auto !important;
}

body.modal-open .modal-backdrop {
    z-index: 1050 !important;
}

body.modal-open .modal-dialog {
    pointer-events: auto !important;
}

body.modal-open .modal-content {
    pointer-events: auto !important;
}

body.modal-open .modal-content * {
    pointer-events: auto !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ================================================
   ACTION BUTTONS - Table/Card Action Icons
   ================================================ */

/* Base Action Button Styling */
.btn-floating {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-floating i {
    font-size: 0.9rem !important;
    line-height: 1 !important;
    color: inherit !important;
    opacity: 1 !important;
}

/* Button Color Variations */
.btn-floating.btn-primary {
    background: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%) !important;
    color: #fff !important;
}

.btn-floating.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: #fff !important;
}

.btn-floating.btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%) !important;
    color: #333 !important;
}

.btn-floating.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
    color: #fff !important;
}

.btn-floating.btn-info {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%) !important;
    color: #fff !important;
}

.btn-floating.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.btn-floating.btn-light {
    background: #fff !important;
    color: #666 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Hover Effects */
.btn-floating:hover {
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
    z-index: 10 !important;
}

.btn-floating:active {
    transform: translateY(-1px) scale(0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Focus States for Accessibility */
.btn-floating:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Action Button Container */
.d-flex.gap-1 {
    gap: 8px !important;
}

/* Ensure buttons are not clipped in table cells */
td .d-flex,
td .btn-floating {
    overflow: visible !important;
}

/* Table-specific action button styling */
.table td .btn-floating {
    margin: 2px !important;
}

/* Action Column Width */
.table th:last-child,
.table td:last-child {
    min-width: 180px;
    white-space: nowrap;
}

/* Mobile Responsive Action Buttons */
@media (max-width: 768px) {
    .btn-floating {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .btn-floating i {
        font-size: 0.8rem !important;
    }

    .d-flex.gap-1 {
        gap: 6px !important;
    }

    /* Stack buttons vertically on very small screens if needed */
    .d-flex.flex-wrap {
        flex-wrap: wrap !important;
    }

    /* Ensure table doesn't hide buttons */
    .table-responsive {
        overflow-x: auto !important;
        overflow-y: visible !important;
    }
}

/* Tooltip Enhancement */
[data-mdb-toggle="tooltip"] {
    cursor: pointer !important;
}

/* Card Action Buttons */
.glass-card .btn-floating {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.glass-card .btn-floating:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure proper z-index in cards */
.glass-card .d-flex {
    position: relative;
    z-index: 5;
}

/* Print Button Specific */
.btn-floating.btn-secondary i.fa-print {
    font-size: 0.85rem !important;
}

/* WhatsApp Share Button */
.btn-floating i.fa-whatsapp {
    font-size: 1rem !important;
}

/* Status-based buttons (approve/reject) */
form.d-inline {
    display: inline-flex !important;
}

form.d-inline .btn-floating {
    margin: 0 2px !important;
}

/* Fix for icon visibility */
.btn-floating * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Table responsive fix - prevent button clipping */
.table-responsive {
    overflow: visible !important;
}

@media (max-width: 992px) {
    .table-responsive {
        overflow-x: auto !important;
    }
}