/* JTI School Monitor Pro - Modern Frontend Styles */

/* Import Phosphor Icons for enhanced iconography */
@import url('https://unpkg.com/phosphor-icons@1.4.2/src/css/icons.css');

/* Custom CSS Variables for consistent theming */
:root {
    --animate-duration: 300ms;
    --animate-timing: cubic-bezier(0.4, 0, 0.2, 1);
    /* Gray colors */
    --gray-100: #f7f7f7;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-700: #374151;
    
    /* Blue colors */
    --blue-50: #eff6ff;
    --blue-400: #60a5fa;
    --blue-600: #2563eb;
    --blue-900: #1e3a8a;
    --blue-900-20: rgba(30, 58, 138, 0.2);
}


/* Dark mode support */
.dark {
    color-scheme: dark;
}

/* Hide default dashboard elements */
body.jti-dashboard-active {
    overflow: hidden;
}

body.jti-dashboard-active #wpadminbar,
body.jti-dashboard-active .site-header,
body.jti-dashboard-active .site-footer {
    display: none !important;
}

/* Smooth animations for all interactive elements */
* {
    transition: all var(--animate-duration) var(--animate-timing);
}

/* Enhanced scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(156, 163, 175) rgb(243, 244, 246);
}

.dark * {
    scrollbar-color: rgb(75, 85, 99) rgb(31, 41, 55);
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    @apply bg-gray-100 dark:bg-gray-800;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb {
    @apply bg-gray-300 dark:bg-gray-600;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400 dark:bg-gray-500;
}

/* Mobile Sidebar Animation */
#sidebar {
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#sidebar.open {
    transform: translateX(0);
}

#sidebar-overlay.show {
    display: block;
    animation: fadeIn 300ms ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* User Dropdown Animation */
#user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modal Animations */
#send-notice-modal.show #modal-content {
    transform: scale(1);
    opacity: 1;
}

#send-notice-modal.show {
    animation: fadeIn 300ms ease-out;
}

/* Enhanced Loading Animations */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Custom loader for better UX */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced button hover effects */
button, .btn {
    position: relative;
    overflow: hidden;
}

button:before, .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    ) !important;
    transition: left 0.5s !important;
}

button:hover:before, .btn:hover:before {
    left: 100% !important;
}

/* Status badges with enhanced styling */
.status-badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}

.status-badge.active {
    @apply bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-300;
}

.status-badge.inactive {
    @apply bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300;
}

.status-badge.high {
    @apply bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-300;
}

.status-badge.urgent {
    @apply bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300;
}

/* Progress bar enhancements */
.progress-bar {
    @apply w-full bg-gray-200 dark:bg-gray-700 rounded-full h-2 overflow-hidden;
}

.progress-fill {
    @apply h-full bg-gradient-to-r from-blue-500 to-blue-600 rounded-full transition-all duration-500 ease-out;
}

.progress-fill.success {
    @apply from-green-500 to-green-600;
}

.progress-fill.warning {
    @apply from-yellow-500 to-yellow-600;
}

.progress-fill.danger {
    @apply from-red-500 to-red-600;
}

/* Card hover effects */
.card-hover {
    @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
}

/* Table responsive enhancements */
.table-container {
    @apply overflow-x-auto rounded-xl border border-gray-200 dark:border-gray-700;
}

.data-table {
    @apply w-full divide-y divide-gray-200 dark:divide-gray-700;
}

.data-table thead {
    @apply bg-gray-50 dark:bg-gray-800;
}

.data-table th {
    @apply px-6 py-4 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider;
}

.data-table td {
    @apply px-6 py-4 whitespace-nowrap text-sm text-gray-900 dark:text-gray-100;
}

.data-table tbody tr {
    @apply hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors;
}

/* Mobile table adaptations */
@media (max-width: 640px) {
    .data-table th,
    .data-table td {
        @apply px-3 py-3 text-xs;
    }
    
    .mobile-stack {
        @apply block;
    }
    
    .mobile-stack td {
        @apply block text-right border-none px-4 py-1;
    }
    
    .mobile-stack td:before {
        content: attr(data-label);
        @apply float-left font-medium text-gray-600 dark:text-gray-400;
    }
}

/* Chart container styling */
.chart-container {
    @apply relative w-full;
    min-height: 320px;
}

/* Notification styles */
.notification {
    @apply fixed top-4 right-4 max-w-sm w-full bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl shadow-lg p-4 z-50;
    animation: slideInRight 300ms ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    @apply border-l-4 border-green-500;
}

.notification.error {
    @apply border-l-4 border-red-500;
}

.notification.warning {
    @apply border-l-4 border-yellow-500;
}

.notification.info {
    @apply border-l-4 border-blue-500;
}

/* Enhanced form styling */
.form-input, .form-select, .form-textarea {
    @apply block w-full px-4 py-3 bg-gray-50 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-xl text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 transition-all duration-200;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    @apply outline-none ring-2 ring-blue-500 border-transparent bg-white dark:bg-gray-800;
}

.form-input:invalid, .form-select:invalid, .form-textarea:invalid {
    @apply border-red-300 dark:border-red-600;
}

/* Avatar styling */
.avatar {
    @apply relative flex items-center justify-center text-white font-semibold rounded-full overflow-hidden;
}

.avatar.online:after {
    content: '';
    @apply absolute bottom-0 right-0 w-3 h-3 bg-green-400 border-2 border-white dark:border-gray-800 rounded-full;
}

/* Skeleton loading improvements */
.skeleton {
    @apply bg-gray-200 dark:bg-gray-700 animate-pulse;
}

.skeleton-text {
    @apply h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse;
}

.skeleton-avatar {
    @apply w-10 h-10 bg-gray-200 dark:bg-gray-700 rounded-full animate-pulse;
}

/* Course module styling */
.module-item {
    @apply flex items-center space-x-4 p-4 bg-white dark:bg-gray-800 rounded-xl border border-gray-200 dark:border-gray-700 hover:shadow-md transition-all duration-200;
}

.module-icon {
    @apply w-12 h-12 rounded-xl flex items-center justify-center text-xl;
}

.module-icon.lesson {
    @apply bg-blue-100 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400;
}

.module-icon.quiz {
    @apply bg-purple-100 dark:bg-purple-900/30 text-purple-600 dark:text-purple-400;
}

.module-icon.assignment {
    @apply bg-orange-100 dark:bg-orange-900/30 text-orange-600 dark:text-orange-400;
}

.module-icon.completed {
    @apply bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400;
}

/* Responsive grid enhancements */
.stats-grid {
    @apply grid grid-cols-2 lg:grid-cols-4 gap-4 lg:gap-6;
}

.chart-grid {
    @apply grid grid-cols-1 lg:grid-cols-2 gap-6;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .mobile-full {
        @apply w-full;
    }
    
    .mobile-hidden {
        @apply hidden;
    }
    
    .mobile-text-sm {
        @apply text-sm;
    }
    
    .mobile-p-4 {
        @apply p-4;
    }
    
    .mobile-space-y-4 > * + * {
        @apply mt-4;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-full {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border {
        border-width: 2px;
    }
    
    .shadow {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible improvements */
.focus-visible:focus {
    @apply outline-none ring-2 ring-blue-500 ring-offset-2 ring-offset-white dark:ring-offset-gray-900;
}

/* Custom utilities */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Component-specific enhancements */
.dashboard-card {
    @apply bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 p-6 hover:shadow-lg transition-all duration-300;
}

.action-button {
    @apply inline-flex items-center px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-xl transition-all duration-200 font-medium shadow-sm hover:shadow-md active:scale-95 !important;
}

.secondary-button {
    @apply inline-flex items-center px-4 py-2 bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-xl hover:bg-gray-200 dark:hover:bg-gray-600 transition-all duration-200 font-medium !important;
}

.danger-button {
    @apply inline-flex items-center px-4 py-2 bg-red-600 hover:bg-red-700 text-white rounded-xl transition-all duration-200 font-medium shadow-sm hover:shadow-md active:scale-95 !important;
}

/* Enhanced accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Course card enhancements */
.course-card {
    @apply bg-white dark:bg-gray-800 rounded-2xl border border-gray-200 dark:border-gray-700 overflow-hidden hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1;
}

.course-header {
    @apply bg-gradient-to-r p-6 text-white;
}

.course-body {
    @apply p-6 space-y-4;
}

/* Student list enhancements */
.student-row {
    @apply hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors cursor-pointer;
}

.student-avatar {
    @apply w-10 h-10 rounded-full flex items-center justify-center text-white font-semibold text-sm;
}

/* Announcement enhancements */
.announcement-card {
    @apply bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-xl p-4 hover:shadow-md transition-all duration-200;
}

.priority-high {
    @apply border-l-4 border-orange-500;
}

.priority-urgent {
    @apply border-l-4 border-red-500;
}

.priority-normal {
    @apply border-l-4 border-blue-500;
}

/* Enhanced responsive styles */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .jti-table {
        font-size: 12px;
    }
    
    .jti-table th,
    .jti-table td {
        padding: 0.5rem;
    }
    
    /* Sticky first columns for mobile tables */
    .jti-table-container {
        position: relative;
    }
    
    .jti-table td:first-child,
    .jti-table th:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background: inherit;
    }
    
    .jti-table td:nth-child(2),
    .jti-table th:nth-child(2) {
        position: sticky;
        left: 60px; /* Adjust based on first column width */
        z-index: 10;
        background: inherit;
    }
    
    /* Mobile course cards */
    .course-card {
        margin-bottom: 1rem;
    }
    
    .course-header {
        padding: 1rem;
    }
    
    .course-body {
        padding: 1rem;
    }
    
    /* Mobile-friendly charts */
    .chart-container {
        min-height: 250px;
    }
}

/* High-quality skeleton loading */
.skeleton-loading {
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.dark .skeleton-loading {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.1) 75%
    );
    background-size: 200% 100%;
}

/* Smooth transitions for all interactive elements */
.jti-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jti-scale:hover {
    transform: scale(1.02);
}

.jti-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Enhanced Student Details View Styles */
.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-badge[data-status="completed"] {
    background-color: rgba(243, 243, 243, 0.979) !important;
    color: #10b981 !important;
}

.status-badge[data-status="in-progress"] {
    background-color: rgba(243, 243, 243, 0.979) !important;
    color: #f59e0b !important;
}

.status-badge[data-status="not-started"] {
    background-color: rgba(243, 243, 243, 0.979) !important;
    color: #64748b !important;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 1rem;
    }
    
    .course-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .performance-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Smooth animations */
.course-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Filter buttons */
.filter-btn {
    transition: all 0.2s ease !important;
}

.filter-btn:hover {
    transform: translateY(-1px);
}

/* Progress bars */
.progress-bar {
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Dark mode adjustments */
.dark .progress-bar::after {
    background-image: linear-gradient(
        -45deg,
        rgba(0, 0, 0, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2) 75%,
        transparent 75%,
        transparent
    );
}

@media (min-width: 1024px) {
    header, .lg\:flex{
        display: flex !important;
    
    }
}
@media (min-width: 640px) {
    .completion, .sm\:block {
        display: block !important;
    }
}

p {
    margin: 0px !important;
}
h1 {
    margin: 0px !important;
}

@media (min-width: 1024px) {
    .lg\:table-cell {
        display: table-cell !important;
    }
}

@media (min-width: 768px) {
    .md\:table-cell {
        display: table-cell !important;
    }
}

@media (min-width: 640px) {
    .sm\:table-header-group {
        display: table-header-group !important;
    }
}

/* Enhanced Skeleton Loading */
.skeleton-loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 0.5rem;
}

.dark .skeleton-loading {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.1) 25%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.1) 75%
    );
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Chart skeleton specific styles */
.chart-skeleton {
    min-height: 320px;
    border-radius: 0.75rem;
}

@media (max-width: 640px) {
    .chart-skeleton {
        min-height: 250px;
    }
}

/* Table row skeleton */
.table-row-skeleton {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--jti-border-light);
}

.table-row-skeleton > div {
    margin-right: 1rem;
}

.skeleton-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.skeleton-text {
    height: 1rem;
    border-radius: 0.25rem;
}

.skeleton-text-sm {
    width: 80px;
}

.skeleton-text-md {
    width: 120px;
}

.skeleton-text-lg {
    width: 160px;
}

.skeleton-badge {
    width: 60px;
    height: 24px;
    border-radius: 9999px;
}

/* Enhanced table head specificity */
.jti-admin-container .jti-table thead th,
#jti-app .data-table thead th {
    background: var(--jti-surface-alt) !important;
    padding: 1rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: var(--jti-text) !important;
    border-bottom: 1px solid var(--jti-border) !important;
    font-size: 0.875rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Ensure these styles override any plugin/theme styles */
body .jti-admin-container .jti-table thead th,
body #jti-app .data-table thead th {
    background: var(--jti-surface-alt) !important;
    padding: 1rem !important;
}

/* Mobile table header hiding */
@media (max-width: 640px) {
    .jti-admin-container .jti-table thead,
    #jti-app .data-table thead {
        display: none !important;
    }
}

/* Add to your existing CSS */
.break-words {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure user dropdown stays on top */
#user-dropdown {
    z-index: 1000;
}

/* Fix for mobile sidebar */
@media (max-width: 1023px) {
    #sidebar {
        z-index: 60;
    }
    
    #sidebar-overlay {
        z-index: 50;
    }
}

/* Ensure theme toggle works properly */
#theme-toggle, #mobile-theme-toggle {
    cursor: pointer;
}

/* Fix for announcement modal scrolling */
.jti-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* Ensure mobile sidebar works properly */
#sidebar {
    transition: transform 0.3s ease-in-out;
    z-index: 50;
}

#sidebar.open {
    transform: translateX(0);
}

#sidebar-overlay {
    transition: opacity 0.3s ease-in-out;
    z-index: 40;
}

#sidebar-overlay.show {
    display: block;
    opacity: 1;
}

#sidebar-overlay.hidden {
    display: none;
    opacity: 0;
}

@media (min-width: 1024px) {
    #sidebar {
        transform: translateX(0) !important;
    }
    
    #sidebar-overlay {
        display: none !important;
    }
}

button:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.wide-modal {
    width: 80% !important;
    height: 80% !important;
    overflow-y: auto;
}

@media (max-width: 1024px) {
    .wide-modal {
        width: 90% !important;
        height: 90% !important;
        overflow-y: auto;
    }
}

.nav-link {
    color: var(--gray-700) !important;
    background-color: var(--gray-100) !important;
    display: block !important;
    border-radius: 10px !important;
    transition: all var(--animate-duration) var(--animate-timing) !important;
}

.dark .nav-link {
    color: var(--gray-300) !important;
    background-color: var(--gray-700) !important;
    display: block !important;
    border-radius: 10px !important;
    transition: all var(--animate-duration) var(--animate-timing) !important;
}

.nav-link:hover {
    color: var(--blue-50) !important;
    background-color: var(--blue-600) !important;
    display: block !important;
    border-radius: 10px !important;
}

.dark .nav-link:hover {
    color: var(--blue-400) !important;
    background-color: var(--blue-900-20) !important;
    display: block !important;
    border-radius: 10px !important;
}

.nav-link-active {
    color: var(--blue-50) !important;
    background-color: var(--blue-600) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: block !important;
    border-radius: 10px !important;
}

.dark .nav-link-active {
    color: var(--blue-400) !important;
    background-color: var(--blue-900-20) !important;
    display: block !important;
    border-radius: 10px !important;
}

.view-content {
    @apply transition-all duration-300 ease-in-out;
}

.view-content.hidden {
    @apply opacity-0 pointer-events-none;
}

.back-btn {
    @apply flex items-center space-x-2 transition-all duration-200;
}

/* Dark mode toggle */
.dark {
    color-scheme: dark !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100 dark:bg-gray-800;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-300 dark:bg-gray-600 rounded-full;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-400 dark:bg-gray-500;
}

/* Responsive table */
@media (max-width: 640px) {
    .table-responsive {
        font-size: 14px;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 8px 4px;
    }
}

.fixed {
    position: fixed;
}

.max-w-64 {
    max-width: 16rem;
}