/* Global Styles */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

/* Chart Container */
.chart-container {
    position: relative;
    height: 500px;
    width: 100%;
}

/* Stats Card Links */
a.block {
    text-decoration: none;
    color: inherit;
}

a.block:hover {
    text-decoration: none;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* Suggestions Dropdown */
#suggestions {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

#suggestions::-webkit-scrollbar {
    width: 8px;
}

#suggestions::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0 8px 8px;
}

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

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

/* Suggestion Item Hover Effect */
#suggestions > div {
    transition: all 0.15s ease;
}

#suggestions > div:first-child {
    border-radius: 8px 8px 0 0;
}

#suggestions > div:last-child {
    border-radius: 0 0 8px 8px;
}

#suggestions > div:only-child {
    border-radius: 8px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}
