/* Custom scrollbars for a true dashboard feel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animations block */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes float-fast {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

.animate-float-slow {
    animation: float 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* Data Table Hover FX */
tbody tr {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

tbody tr:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

/* Subtle Badges */
.badge-subtle {
    position: relative;
    top: -1px;
}

/* Modal Open Animation */
#modal-content.modal-open {
    transform: scale(1);
    opacity: 1;
}

#modal-container.modal-open {
    opacity: 1;
}

/* Gradient text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ticker Marquee */
.ticker-content {
    animation: ticker 25s linear infinite;
    display: inline-flex;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pulsing Dots for real-time feel */
.status-dot {
    position: relative;
    display: inline-block;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.active::after {
    background-color: rgba(34, 197, 94, 0.4);
}
.status-dot.warning::after {
    background-color: rgba(234, 179, 8, 0.4);
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Glassmorphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

/* Make headers stick in tables for dashboard feel */
th {
    position: sticky;
    top: 0;
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Custom Toastify adjustments */
.toastify {
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    padding: 12px 20px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    font-weight: 500 !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.toastify.success { background: #319795 !important; }
.toastify.error { background: #ef4444 !important; }
.toastify.info { background: #6B46C1 !important; color: white !important;}

/* Fix body width bug for horizontal scrolling */
body {
    max-width: 100vw;
    overflow-x: hidden;
}

#main-header {
    width: 100vw;
}

.w-full {
    max-width: 100%;
}
