@tailwind base;
@tailwind components;
@tailwind utilities;

body {
    -webkit-tap-highlight-color: transparent;
}

.nav-link.active {
    @apply bg-blue-100 text-blue-600;
}

.nav-link.active i {
    @apply text-blue-600;
}

/* Custom scrollbar */
#app-content::-webkit-scrollbar {
    width: 8px;
}
#app-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
#app-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}
#app-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Modal animation */
.modal-content {
    animation: slide-up 0.3s ease-out forwards;
}

@keyframes slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loader for loading screen */
.loader {
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* For Stats Page Bar Chart */
.chart-bar {
    transition: height 0.5s ease-in-out;
}