/* Dashboard Enhancements CSS */
/* Advanced animations and interactive effects for the Abbot Control Center */

/* Enhanced Card Hover Effects */
.enhanced-agent-card {
    position: relative;
    overflow: hidden;
}

.enhanced-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.enhanced-agent-card:hover::before {
    left: 100%;
}

/* Floating Action Button Animations */
.fab-item {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.fab-open .fab-item {
    transform: translateY(0);
    opacity: 1;
}

.fab-item:nth-child(1) { transition-delay: 0.1s; }
.fab-item:nth-child(2) { transition-delay: 0.2s; }
.fab-item:nth-child(3) { transition-delay: 0.3s; }

/* Toast Notification Styles */
.toast {
    min-width: 300px;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Progress Bar Enhancements */
.enhanced-progress {
    position: relative;
    overflow: hidden;
}

.enhanced-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* Status Indicator Enhancements */
.status-indicator {
    position: relative;
    display: inline-block;
}

.status-indicator.online::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Metric Card Enhancements */
.metric-card {
    position: relative;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.metric-card:hover::before {
    opacity: 1;
}

/* Navigation Enhancement */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Loading Spinner Enhancement */
.enhanced-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card-dark {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Micro-interactions */
.interactive-element {
    transition: all 0.2s ease;
}

.interactive-element:hover {
    transform: scale(1.05);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .enhanced-agent-card {
        margin-bottom: 1rem;
    }
    
    .toast {
        min-width: 280px;
        margin: 0 1rem;
    }
    
    .fab-menu {
        bottom: 80px;
        right: 10px;
    }
}

/* Dark Mode Specific Enhancements */
@media (prefers-color-scheme: dark) {
    .enhanced-agent-card::before {
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    }
    
    .metric-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .enhanced-agent-card::before,
    .enhanced-progress::after,
    .status-indicator.online::after {
        animation: none;
    }
    
    .toast {
        transition: opacity 0.3s ease;
    }
}

/* Focus Styles for Better Accessibility */
.interactive-element:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(75, 85, 99, 0.1);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}