/**
 * Dashboard V2 Enhancements
 * Additional styles for improved dashboard components
 */

/* Quick Insights Styling */
.insight-box {
    padding: 24px;
    text-align: center;
    border-radius: 12px;
    background: white;
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.insight-box:hover {
    border-color: #71c23c;
    box-shadow: 0 8px 20px rgba(113, 194, 60, 0.1);
    transform: translateY(-4px);
}

.insight-box i {
    display: block;
}

.insight-box h5 {
    font-size: 16px;
    margin-top: 12px;
    margin-bottom: 8px;
    color: #1f2937;
}

.insight-box p {
    font-size: 13px;
    line-height: 1.5;
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card-v2,
.quick-action-btn,
.activity-feed-card {
    animation: fadeInUp 0.5s ease-out;
}

.metric-card-v2:nth-child(1) { animation-delay: 0.1s; }
.metric-card-v2:nth-child(2) { animation-delay: 0.2s; }
.metric-card-v2:nth-child(3) { animation-delay: 0.3s; }
.metric-card-v2:nth-child(4) { animation-delay: 0.4s; }

/* Improved card headers */
.bg-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* Responsive improvements */
@media (max-width: 991px) {
    .insight-box {
        margin-bottom: 16px;
    }
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced tooltips */
.tooltip-inner {
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Improved buttons */
.btn-sm {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-outline-primary {
    border-width: 2px;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* Card improvements */
.card.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.card.border-0 {
    border: none !important;
}

/* Enhanced spacing */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mt-5 { margin-top: 3rem !important; }

/* Glass effects refinement */
.glass-content-ultra {
    background: transparent;
}

/* Print styles */
@media print {
    .quick-actions-container,
    .activity-action,
    .btn,
    .navbar,
    .sidebar {
        display: none !important;
    }
    
    .metric-card-v2,
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}

/* Dark mode support (future-proof) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles when needed */
}

/* Accessibility improvements */
.btn:focus,
.quick-action-btn:focus,
a:focus {
    outline: 2px solid #71c23c;
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
