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

body { 
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

[x-cloak] { 
    display: none !important; 
}

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

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

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: #e2e8f0; 
    border-radius: 10px; 
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
}

.scrollbar-hide::-webkit-scrollbar { 
    display: none; 
}

.scrollbar-hide { 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}

/* Student Portal Styles */
.flat-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.btn-green {
    background-color: #059669;
    color: #ffffff;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-green:hover {
    background-color: #047857;
}

/* Common Layout Components */
.sidebar-transition {
    transition: all 0.3s ease-in-out;
}

/* Card Hover Effects */
.card-hover {
    @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
}

/* Table Enhancements */
.table-container {
    @apply bg-white border border-gray-200/60 rounded-3xl overflow-hidden shadow-sm;
}

/* Modal Animations */
.modal-backdrop {
    @apply fixed inset-0 bg-gray-900/60 backdrop-blur-md transition-opacity;
}

.modal-content {
    @apply inline-block align-bottom bg-white rounded-[2.5rem] text-left overflow-hidden transform transition-all sm:my-8 sm:align-middle lg:max-w-4xl sm:w-full border-none shadow-2xl;
}

/* Dynamic Hover Effects */
.btn-hover-effect:active {
    transform: scale(0.98);
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce-slow 2s infinite ease-in-out;
}
