@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Ultra-Premium Pastel Palette */
    --bs-primary: #6366f1; /* Indigo */
    --bs-primary-rgb: 99, 102, 241;
    --bs-secondary: #a855f7; /* Purple pastel */
    --bs-info: #0ea5e9;
    --bs-success: #10b981;
    --bs-warning: #f59e0b;
    --bs-danger: #f43f5e;
    --bs-dark: #0f172a;
    --bs-light: #ffffff;
    
    --bs-body-font-family: 'Plus Jakarta Sans', sans-serif;
    --bs-body-color: #334155;

    /* Animated Gradient Background */
    --gradient-bg-1: #e0e7ff;
    --gradient-bg-2: #f3e8ff;
    --gradient-bg-3: #e0f2fe;

    /* Stunning Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-info: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);

    /* Layered Premium Shadows (Apple-like) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 40px -5px rgba(99, 102, 241, 0.15), 0 10px 15px -5px rgba(99, 102, 241, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.4);

    /* Glassmorphism Refined */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 1);
    --glass-blur: blur(24px);
    
    /* Radii */
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* Background Animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(-45deg, var(--gradient-bg-1), var(--gradient-bg-2), var(--gradient-bg-3));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    font-family: var(--bs-body-font-family);
    color: var(--bs-body-color);
    letter-spacing: 0.2px;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 3D Floating Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    animation: floatOrb 10s ease-in-out infinite alternate;
}
body::before {
    width: 60vw; height: 60vw;
    background: rgba(168, 85, 247, 0.15);
    top: -20%; left: -10%;
}
body::after {
    width: 50vw; height: 50vw;
    background: rgba(14, 165, 233, 0.15);
    bottom: -10%; right: -10%;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--bs-dark);
    letter-spacing: -0.5px;
}

/* Ultimate Glass Cards */
.card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.custom-hover-card {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.custom-hover-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl) !important;
}

.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.5) !important;
    padding: 1.5rem 1.5rem 1rem !important;
}

/* Premium Tables */
.table {
    --bs-table-bg: transparent;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.table thead th {
    border-bottom: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #64748b;
    padding-bottom: 0.75rem;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    z-index: 10;
    position: relative;
}

.table tbody td {
    border: none;
    padding: 1.2rem 1rem;
    vertical-align: middle;
    color: #475569;
    font-weight: 500;
}

.table tbody tr td:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.table tbody tr td:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); }

/* Inputs with Glow */
.form-control {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    color: #1e293b;
}

.form-select {
    border: 2px solid #cbd5e1 !important;
    border-radius: var(--radius-md) !important;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    color: #0f172a !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-sm) !important;
}

.modal-content {
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    background: #ffffff !important;
}

.modal-body {
    max-height: calc(75vh - 100px) !important;
    overflow-y: auto !important;
}

.modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 10 !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 1rem 1.5rem !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    background-color: #ffffff !important;
    transform: translateY(-2px);
}

.form-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* 3D Premium Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Allow notification badges to overflow outside the button */
.btn.position-relative {
    overflow: visible !important;
}

/* Shine effect on hover */
.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 20%; height: 200%;
    background: rgba(255,255,255,0.3);
    transform: rotate(35deg);
    transition: all 0.6s ease;
    opacity: 0;
}
.btn:hover::after { left: 120%; opacity: 1; }

.btn-primary {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.5);
}

.btn-success {
    background: var(--gradient-success) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.5);
}

.btn-outline-primary {
    background: rgba(255,255,255,0.8) !important;
    border: 2px solid var(--bs-primary) !important;
    color: var(--bs-primary) !important;
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Badges */
.badge {
    border-radius: 8px;
    padding: 0.6em 1em;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* Fix Notification Badge (absolute positioned badges) */
.btn .badge.position-absolute {
    padding: 4px 6px !important;
    font-size: 0.7rem !important;
    border-radius: 50rem !important;
    min-width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid white !important;
    letter-spacing: normal !important;
}

/* Flawless Sidebar */
#sidebar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255,255,255,1);
    box-shadow: var(--shadow-lg);
    z-index: 1040;
    transition: all 0.4s ease;
}

#sidebar .nav-link {
    color: #475569;
    border-radius: var(--radius-md);
    margin: 8px 16px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#sidebar .nav-link i { font-size: 1.1rem; }

/* FIX: Sidebar Hover - Ensure contrast and beautiful hover state */
#sidebar .nav-link:hover {
    background: rgba(99, 102, 241, 0.1); /* Very soft indigo */
    color: var(--bs-primary);
    transform: translateX(6px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

#sidebar .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    border: none;
}
#sidebar .nav-link.active i { color: white; }

/* Header Navbar */
header.bg-white {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.8) !important;
    box-shadow: var(--shadow-sm);
}

/* Modals */
.modal-content {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}
.modal-header { border-bottom: 1px solid rgba(0,0,0,0.04); }
.modal-footer { border-top: 1px solid rgba(0,0,0,0.04); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.6); }

/* ==== HORIZONTAL SCROLLABLE BUTTON BAR (PREVENTS VERTICAL TEXT SQUEEZING) ==== */
.horizontal-scroll-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
    gap: 8px !important;
}
.horizontal-scroll-bar::-webkit-scrollbar {
    display: none !important;
}
.horizontal-scroll-bar .btn,
.horizontal-scroll-bar a,
.horizontal-scroll-bar .nav-link,
.horizontal-scroll-bar .nav-item,
.horizontal-scroll-bar button {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 38px !important;
}

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
    body { padding: 0 !important; }
    
    /* Optimize cards for mobile */
    .card, .card-custom {
        border-radius: var(--radius-md) !important;
        margin-bottom: 1rem;
    }
    .card-body { padding: 1.2rem !important; }
    
    /* Make tables swipeable without breaking layout */
    .table-responsive {
        border-radius: var(--radius-md);
        box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1rem;
    }

    .table-responsive .table {
        min-width: 680px !important;
        margin-bottom: 0 !important;
    }
    
    /* Sidebar adjustments for mobile */
    #sidebar {
        width: 280px !important;
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Only apply full-width to explicit block buttons */
    .btn-block-mobile {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    /* Fix the toggle button position */
    #sidebar-toggle {
        background: var(--glass-bg);
        border: var(--glass-border);
        box-shadow: var(--shadow-md);
        border-radius: 50%;
        width: 45px; height: 45px;
        display: flex; align-items: center; justify-content: center;
    }
}

/* ==== FORCED UTILITY OVERRIDES (TO OVERPOWER BOOTSTRAP) ==== */
/* This ensures the premium glassmorphism takes effect everywhere, overpowering inline Bootstrap bg-white */
.bg-white, .card.bg-white, .card-custom {
    background-color: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

/* Force Sidebar to overcome app.blade.php inline styles */
.sidebar, #sidebar {
    background: var(--glass-bg) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border-right: var(--glass-border) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Sidebar Brand Header */
.sidebar-brand, #sidebar .sidebar-brand {
    background: transparent !important;
    border-bottom: var(--glass-border) !important;
}
.sidebar-brand span, #sidebar .sidebar-brand span {
    color: #1e293b !important;
}

/* Make sure text in sidebar is readable */
.sidebar .nav-link, .sidebar a, #sidebar .nav-link, #sidebar a {
    color: #475569 !important; /* Light slate text */
    font-weight: 600 !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important; /* Light border around options */
    margin-bottom: 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Style the TAC Logo */
.sidebar-brand img {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 3px;
    background: transparent;
}

.sidebar .nav-link:hover, .sidebar a:hover, #sidebar .nav-link:hover, #sidebar a:hover {
    background: rgba(99, 102, 241, 0.05) !important; 
    color: #6366f1 !important;
    border: 1px solid rgba(99, 102, 241, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
}

.sidebar .nav-link.active, .sidebar a.active, #sidebar .nav-link.active, #sidebar a.active {
    background: linear-gradient(135deg, #6366f1, #a855f7) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

/* Overpower generic body backgrounds if set inline */
body {
    background-color: transparent !important; /* Let the body gradient show */
}

/* ==== 3D JORDAR MAST ANIMATIONS ==== */
@keyframes pageLoad3D {
    0% {
        opacity: 0;
        transform: perspective(1200px) rotateX(12deg) translateY(40px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: none;
    }
}

.main-content {
    animation: pageLoad3D 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: top center;
}

.card-custom, .card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.card-custom:hover, .card:hover {
    box-shadow: -10px 20px 40px rgba(0,0,0,0.08), 10px 20px 40px rgba(0,0,0,0.04) !important;
    z-index: 10;
}

/* ==== MODAL POSITIONING & SCROLLABILITY FIX ==== */
.modal {
    z-index: 1065 !important;
}
.modal-backdrop {
    z-index: 1060 !important;
}
.modal-dialog-centered {
    min-height: calc(100% - 3.5rem);
}



/* ==== SELECT2 PREMIUM STYLING ==== */
/* Make select boxes look absolutely beautiful */
.select2-container--modern-premium .select2-selection--single {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: var(--radius-md) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 1.2rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease !important;
}

.select2-container--modern-premium.select2-container--open .select2-selection--single {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    background: #ffffff !important;
}

.select2-container--modern-premium .select2-selection__arrow {
    height: 46px !important;
    right: 15px !important;
}

.select2-container--modern-premium .select2-selection__rendered {
    color: #1e293b !important;
    padding-left: 0 !important;
}

.select2-dropdown.select2-dropdown--below, 
.select2-dropdown.select2-dropdown--above {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255,255,255,1) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 8px !important;
    margin-top: 4px !important;
}

.select2-container--modern-premium .select2-results__option {
    padding: 10px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    color: #475569 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.select2-container--modern-premium .select2-results__option--highlighted[aria-selected] {
    background: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3) !important;
}

.select2-container--modern-premium .select2-search--dropdown .select2-search__field {
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}
.select2-container--modern-premium .select2-search--dropdown .select2-search__field:focus {
    outline: none !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* ==== DEMO BANNER PREMIUM STYLING ==== */
#demo-banner, .demo-banner, .bg-warning, .badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%) !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
    text-shadow: 0 1px 2px rgba(255,255,255,0.4) !important;
}

/* Ensure the top navbar where the banner lives looks sleek */
.navbar, header {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8) !important;
}

/* Pulsing effect for the demo timer */
#demoCountdownTimer {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ==========================================================================
   Premium Fix for Form Controls Inside Tables
   ========================================================================== */

/* Standardize table headers to match screenshot premium style */
.table th {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #64748b !important;
    font-weight: 800 !important;
    padding: 16px 12px !important;
    background: transparent !important;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8) !important;
    border-top: none !important;
    white-space: nowrap !important;
}

/* Force standard compact sizing on form inputs inside tables (bypassing the global massive pills) */
.table .form-control, 
.table .form-select {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    height: auto !important;
    min-width: 120px !important; /* Ensure enough space for numbers */
}

.table td {
    vertical-align: middle !important;
    padding: 12px !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4) !important;
}

/* Fix input groups specifically inside tables so they don't break apart */
.table .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-width: 180px !important;
}

.table .input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-right: 0 !important;
}

.table .input-group .form-select {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-left: 1px solid rgba(226, 232, 240, 0.9) !important;
    min-width: 80px !important;
}

/* Add a beautiful hover state for table rows with inputs */
.table tbody tr:hover td .form-control,
.table tbody tr:hover td .form-select {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: #ffffff !important;
}

/* Specific fix for action buttons inside the table */
.table .btn-sm {
    padding: 8px 12px !important;
    border-radius: 8px !important;
}

/* Pulsing effect for the demo timer */
#demoCountdownTimer {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.perspective-1000 { perspective: 1000px; }
.group:hover .group-hover\:rotate-x-12 { transform: rotateX(12deg) translateY(-1rem); }
.group:hover .group-hover\:-rotate-x-12 { transform: rotateX(-12deg) translateY(-1rem); }
.group:hover .group-hover\:rotate-y-12 { transform: rotateY(12deg) translateY(-1rem); }
.group:hover .group-hover\:-rotate-y-12 { transform: rotateY(-12deg) translateY(-1rem); }

