modernizae
Browse files43 unmodified lines444546474849505152535455565758596061626364656667686970717244 unmodified lines11711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115293 unmodified lines2462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073081 unmodified line31031131231343 unmodified lines}}};// Notification Systemclass NotificationManager {static show(message, type = 'info') {const notification = document.createElement('div');notification.className = `fixed top-4 right-4 z-50 px-6 py-4 rounded-lg shadow-lg slide-in ${type === 'success' ? 'bg-green-500' : type === 'error' ? 'bg-red-500' : 'bg-blue-500'} text-white`;notification.textContent = message;document.body.appendChild(notification);setTimeout(() => {notification.remove();}, 5000);}static showError(message) {this.show(message, 'error');}static showSuccess(message) {this.show(message, 'success');}}// Form Validationclass FormValidator {static validateEmail(email) {44 unmodified linesreturn now.toISOString().slice(0, 16);}}// Modal Managerclass ModalManager {static open(modalId) {const modal = document.getElementById(modalId);if (modal) {modal.classList.remove('hidden');modal.classList.add('flex');document.body.style.overflow = 'hidden';}}static close(modalId) {const modal = document.getElementById(modalId);if (modal) {modal.classList.remove('flex');modal.classList.add('hidden');document.body.style.overflow = 'auto';}}static closeAll() {document.querySelectorAll('.modal-overlay').forEach(modal => {modal.classList.remove('flex');modal.classList.add('hidden');});document.body.style.overflow = 'auto';}}// Data Table Managerclass DataTableManager {static initialize(tableId, options = {}) {93 unmodified linesreturn true;}}// Initialize on DOM loaddocument.addEventListener('DOMContentLoaded', function() {// Initialize feather iconsif (typeof feather !== 'undefined') {feather.replace();}// Initialize data tables with searchdocument.querySelectorAll('[data-table="searchable"]').forEach(table => {DataTableManager.initialize(table.id, { searchable: true, paginate: true, pageSize: 5 });});// Setup modal close handlersdocument.querySelectorAll('[data-modal-close]').forEach(button => {button.addEventListener('click', function() {const modalId = this.getAttribute('data-modal-close');ModalManager.close(modalId);});});// Close modal when clicking outsidedocument.querySelectorAll('.modal-overlay').forEach(modal => {modal.addEventListener('click', function(e) {if (e.target === this) {ModalManager.closeAll();}});});// Format all dates with data-date attributedocument.querySelectorAll('[data-date]').forEach(element => {const date = element.getAttribute('data-date');if (date) {element.textContent = DateTimeUtils.formatDate(date);}});// Format all times with data-time attributedocument.querySelectorAll('[data-time]').forEach(element => {const time = element.getAttribute('data-time');if (time) {element.textContent = DateTimeUtils.formatTime(time);}});// Calculate durationsdocument.querySelectorAll('[data-duration-start][data-duration-end]').forEach(element => {const start = element.getAttribute('data-duration-start');const end = element.getAttribute('data-duration-end');if (start && end) {element.textContent = DateTimeUtils.calculateDuration(start, end);}});});// Export utilities for use in componentswindow.AppState = AppState;window.ApiService = ApiService;window.NotificationManager = NotificationManager;1 unmodified linewindow.DateTimeUtils = DateTimeUtils;window.ModalManager = ModalManager;window.DataTableManager = DataTableManager;window.RBAC = RBAC;43 unmodified lines444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912044 unmodified lines16516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722893 unmodified lines3223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304311 unmodified line43343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447543 unmodified lines}}};// Modern Notification Systemclass NotificationManager {static show(message, type = 'info', options = {}) {const notification = document.createElement('div');notification.className = `fixed top-4 right-4 z-50 px-6 py-4 rounded-xl shadow-lg slide-in flex items-start space-x-3 ${type === 'success' ? 'bg-emerald-500' : type === 'error' ? 'bg-rose-500' : type === 'warning' ? 'bg-amber-500' : 'bg-blue-500'} text-white`;const iconMap = {success: 'check-circle',error: 'alert-circle',warning: 'alert-triangle',info: 'info'};notification.innerHTML = `<i data-feather="${iconMap[type] || 'info'}" class="w-5 h-5 flex-shrink-0"></i><div><p class="font-medium">${options.title || type.toUpperCase()}</p><p class="text-sm opacity-90">${message}</p></div><button class="absolute top-2 right-2 opacity-70 hover:opacity-100"><i data-feather="x" class="w-4 h-4"></i></button>`;document.body.appendChild(notification);feather.replace();// Auto-dismissconst timeout = options.timeout || 5000;let dismissTimeout = setTimeout(() => {notification.classList.add('fade-out');setTimeout(() => notification.remove(), 200);}, timeout);// Manual dismissconst dismissBtn = notification.querySelector('button');dismissBtn.addEventListener('click', () => {clearTimeout(dismissTimeout);notification.classList.add('fade-out');setTimeout(() => notification.remove(), 200);});// Hover to pausenotification.addEventListener('mouseenter', () => {clearTimeout(dismissTimeout);});notification.addEventListener('mouseleave', () => {dismissTimeout = setTimeout(() => {notification.classList.add('fade-out');setTimeout(() => notification.remove(), 200);}, 1000);});}static showError(message, options = {}) {this.show(message, 'error', options);}static showSuccess(message, options = {}) {this.show(message, 'success', options);}static showWarning(message, options = {}) {this.show(message, 'warning', options);}static showInfo(message, options = {}) {this.show(message, 'info', options);}}// Form Validationclass FormValidator {static validateEmail(email) {44 unmodified linesreturn now.toISOString().slice(0, 16);}}// Modern Modal Manager with Animationsclass ModalManager {static open(modalId) {const modal = document.getElementById(modalId);if (modal) {modal.classList.remove('hidden');modal.classList.add('flex');const content = modal.querySelector('.modal-content');if (content) {content.classList.remove('closing');content.classList.add('opening');}document.body.style.overflow = 'hidden';}}static close(modalId) {const modal = document.getElementById(modalId);if (modal) {const content = modal.querySelector('.modal-content');if (content) {content.classList.add('closing');content.classList.remove('opening');content.addEventListener('animationend', () => {modal.classList.remove('flex');modal.classList.add('hidden');document.body.style.overflow = 'auto';}, { once: true });} else {modal.classList.remove('flex');modal.classList.add('hidden');document.body.style.overflow = 'auto';}}}static closeAll() {document.querySelectorAll('.modal-overlay').forEach(modal => {const content = modal.querySelector('.modal-content');if (content) {content.classList.add('closing');content.classList.remove('opening');content.addEventListener('animationend', () => {modal.classList.remove('flex');modal.classList.add('hidden');}, { once: true });} else {modal.classList.remove('flex');modal.classList.add('hidden');}});document.body.style.overflow = 'auto';}}// Data Table Managerclass DataTableManager {static initialize(tableId, options = {}) {93 unmodified linesreturn true;}}// Modern DOM Initializationdocument.addEventListener('DOMContentLoaded', function() {// Initialize feather iconsif (typeof feather !== 'undefined') {feather.replace();}// Initialize data tables with searchdocument.querySelectorAll('[data-table="searchable"]').forEach(table => {DataTableManager.initialize(table.id, {searchable: true,paginate: true,pageSize: 5,sortable: true});});// Setup modal close handlersdocument.querySelectorAll('[data-modal-close]').forEach(button => {button.addEventListener('click', function() {const modalId = this.getAttribute('data-modal-close');ModalManager.close(modalId);});});// Close modal when clicking outsidedocument.querySelectorAll('.modal-overlay').forEach(modal => {modal.addEventListener('click', function(e) {if (e.target === this) {ModalManager.closeAll();}});});// Format all dates with data-date attributedocument.querySelectorAll('[data-date]').forEach(element => {const date = element.getAttribute('data-date');if (date) {element.textContent = DateTimeUtils.formatDate(date);}});// Format all times with data-time attributedocument.querySelectorAll('[data-time]').forEach(element => {const time = element.getAttribute('data-time');if (time) {element.textContent = DateTimeUtils.formatTime(time);}});// Calculate durationsdocument.querySelectorAll('[data-duration-start][data-duration-end]').forEach(element => {const start = element.getAttribute('data-duration-start');const end = element.getAttribute('data-duration-end');if (start && end) {element.textContent = DateTimeUtils.calculateDuration(start, end);}});// Add hover effects to cardsdocument.querySelectorAll('.card').forEach(card => {card.classList.add('hover-scale');});// Add ripple effect to buttonsdocument.querySelectorAll('.btn').forEach(button => {button.addEventListener('click', function(e) {const rect = this.getBoundingClientRect();const x = e.clientX - rect.left;const y = e.clientY - rect.top;const ripple = document.createElement('span');ripple.className = 'ripple-effect';ripple.style.left = `${x}px`;ripple.style.top = `${y}px`;this.appendChild(ripple);setTimeout(() => {ripple.remove();}, 600);});});// Initialize tooltipsdocument.querySelectorAll('[data-tooltip]').forEach(element => {const tooltip = document.createElement('div');tooltip.className = 'tooltip hidden';tooltip.textContent = element.getAttribute('data-tooltip');document.body.appendChild(tooltip);element.addEventListener('mouseenter', (e) => {const rect = element.getBoundingClientRect();tooltip.classList.remove('hidden');tooltip.style.left = `${rect.left + rect.width / 2 - tooltip.offsetWidth / 2}px`;tooltip.style.top = `${rect.top - tooltip.offsetHeight - 10}px`;});element.addEventListener('mouseleave', () => {tooltip.classList.add('hidden');});});});// Modern Utility Exportswindow.AppState = AppState;window.ApiService = ApiService;window.NotificationManager = NotificationManager;1 unmodified linewindow.DateTimeUtils = DateTimeUtils;window.ModalManager = ModalManager;window.DataTableManager = DataTableManager;window.RBAC = RBAC;// Add modern utility functionswindow.Utils = {debounce: (func, wait) => {let timeout;return function(...args) {clearTimeout(timeout);timeout = setTimeout(() => func.apply(this, args), wait);};},throttle: (func, limit) => {let inThrottle;return function(...args) {if (!inThrottle) {func.apply(this, args);inThrottle = true;setTimeout(() => inThrottle = false, limit);}};},copyToClipboard: (text) => {navigator.clipboard.writeText(text).then(() => {NotificationManager.showSuccess('Copied to clipboard!');}).catch(() => {NotificationManager.showError('Failed to copy text');});},formatBytes: (bytes, decimals = 2) => {if (bytes === 0) return '0 Bytes';const k = 1024;const dm = decimals < 0 ? 0 : decimals;const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];const i = Math.floor(Math.log(bytes) / Math.log(k));return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];}};
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206/* Global Styles */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');* {font-family: 'Inter', sans-serif;}/* Custom Scrollbar */::-webkit-scrollbar {width: 8px;height: 8px;}::-webkit-scrollbar-track {background: #f1f1f1;border-radius: 4px;}::-webkit-scrollbar-thumb {background: #d1d5db;border-radius: 4px;}::-webkit-scrollbar-thumb:hover {background: #9ca3af;}/* Status Badges */.status-badge {@apply px-3 py-1 rounded-full text-xs font-medium;}.status-active {@apply bg-green-100 text-green-800;}.status-pending {@apply bg-yellow-100 text-yellow-800;}.status-rejected {@apply bg-red-100 text-red-800;}.status-completed {@apply bg-blue-100 text-blue-800;}/* Action Cards */.action-card {@apply flex items-center space-x-3 p-4 bg-gray-50 hover:bg-gray-100 rounded-lg transition-colors duration-200 cursor-pointer border border-gray-200;}.action-card i {@apply text-gray-600;}.action-card span {@apply text-gray-700 font-medium;}.action-card:hover i,.action-card:hover span {@apply text-primary-600;}/* Activity Items */.activity-item {@apply flex items-start space-x-3 p-3 rounded-lg hover:bg-gray-50 transition-colors duration-200;}.activity-icon {@apply w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0;}/* Form Styles */.form-group {@apply mb-6;}.form-label {@apply block text-sm font-medium text-gray-700 mb-2;}.form-input {@apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition duration-200;}.form-select {@apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent bg-white transition duration-200;}.btn {@apply px-6 py-2 rounded-lg font-medium transition duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;}.btn-primary {@apply bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500;}.btn-secondary {@apply bg-secondary-600 text-white hover:bg-secondary-700 focus:ring-secondary-500;}.btn-outline {@apply border border-gray-300 text-gray-700 hover:bg-gray-50 focus:ring-gray-500;}/* Card Styles */.card {@apply bg-white rounded-xl shadow-md border border-gray-200;}.card-header {@apply px-6 py-4 border-b border-gray-200;}.card-title {@apply text-lg font-semibold text-gray-800;}.card-body {@apply p-6;}/* Table Styles */.table-container {@apply overflow-x-auto rounded-lg border border-gray-200;}.table {@apply min-w-full divide-y divide-gray-200;}.table th {@apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;}.table td {@apply px-6 py-4 whitespace-nowrap text-sm text-gray-900;}.table tr {@apply hover:bg-gray-50 transition-colors duration-150;}/* Modal Overlay */.modal-overlay {@apply fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50;}.modal-content {@apply bg-white rounded-xl shadow-2xl max-w-2xl w-full mx-4;}/* Loading Spinner */.spinner {@apply animate-spin rounded-full border-4 border-gray-200 border-t-primary-600;}/* Role Badges */.role-badge {@apply px-3 py-1 rounded-full text-xs font-medium;}.role-admin {@apply bg-purple-100 text-purple-800;}.role-manager {@apply bg-blue-100 text-blue-800;}.role-analyst {@apply bg-green-100 text-green-800;}/* Animation Classes */.fade-in {animation: fadeIn 0.3s ease-in-out;}@keyframes fadeIn {from { opacity: 0; }to { opacity: 1; }}.slide-in {animation: slideIn 0.3s ease-out;}@keyframes slideIn {from { transform: translateY(10px); opacity: 0; }to { transform: translateY(0); opacity: 1; }}/* Responsive Adjustments */@media (max-width: 768px) {.action-card {@apply justify-center py-3;}.action-card span {@apply text-sm;}}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422/* Modern Global Styles */@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');:root {--primary: #3b82f6;--primary-hover: #2563eb;--secondary: #8b5cf6;--secondary-hover: #7c3aed;--dark: #1e293b;--light: #f8fafc;--success: #10b981;--warning: #f59e0b;--danger: #ef4444;--info: #0ea5e9;--radius: 12px;--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);}* {font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;box-sizing: border-box;}body {@apply bg-gray-50 text-gray-900 antialiased;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}code, pre {font-family: 'JetBrains Mono', monospace;}/* Modern Scrollbar */::-webkit-scrollbar {width: 10px;height: 10px;}::-webkit-scrollbar-track {background: rgba(0, 0, 0, 0.02);border-radius: var(--radius);}::-webkit-scrollbar-thumb {background: rgba(0, 0, 0, 0.1);border-radius: var(--radius);border: 2px solid transparent;background-clip: padding-box;}::-webkit-scrollbar-thumb:hover {background: rgba(0, 0, 0, 0.2);}/* Modern Status Badges */.status-badge {@apply px-3 py-1 rounded-full text-xs font-medium inline-flex items-center;transition: all 0.2s ease;}.status-active {@apply bg-emerald-100 text-emerald-800;}.status-pending {@apply bg-amber-100 text-amber-800;}.status-rejected {@apply bg-rose-100 text-rose-800;}.status-completed {@apply bg-blue-100 text-blue-800;}.status-badge i {@apply mr-1 w-3 h-3;}/* Modern Action Cards */.action-card {@apply flex items-center space-x-3 p-4 rounded-xl transition-all duration-300 cursor-pointer;background: rgba(255, 255, 255, 0.5);backdrop-filter: blur(10px);border: 1px solid rgba(0, 0, 0, 0.05);box-shadow: var(--shadow-sm);}.action-card:hover {@apply shadow-md;transform: translateY(-2px);border-color: rgba(0, 0, 0, 0.1);}.action-card i {@apply text-gray-500 transition-colors duration-300;}.action-card span {@apply text-gray-700 font-medium transition-colors duration-300;}.action-card:hover i {@apply text-primary-500;}.action-card:hover span {@apply text-primary-600;}/* Modern Activity Items */.activity-item {@apply flex items-start space-x-3 p-3 rounded-xl transition-all duration-300;background: rgba(255, 255, 255, 0.5);backdrop-filter: blur(10px);border: 1px solid rgba(0, 0, 0, 0.05);}.activity-item:hover {@apply shadow-sm;transform: translateY(-1px);border-color: rgba(0, 0, 0, 0.1);}.activity-icon {@apply w-9 h-9 rounded-xl flex items-center justify-center flex-shrink-0;box-shadow: var(--shadow-sm);}/* Modern Form Styles */.form-group {@apply mb-6;}.form-label {@apply block text-sm font-medium text-gray-700 mb-2;}.form-input {@apply w-full px-4 py-2.5 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-300;background: rgba(255, 255, 255, 0.8);box-shadow: var(--shadow-sm);}.form-input:hover {border-color: rgba(0, 0, 0, 0.2);}.form-select {@apply w-full px-4 py-2.5 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-300;background: rgba(255, 255, 255, 0.8) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") right 0.75rem center/1.5em 1.5em no-repeat;box-shadow: var(--shadow-sm);appearance: none;}.btn {@apply px-6 py-2.5 rounded-xl font-medium transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 inline-flex items-center justify-center;box-shadow: var(--shadow-sm);}.btn:hover {transform: translateY(-1px);box-shadow: var(--shadow);}.btn:active {transform: translateY(0);}.btn-primary {@apply bg-primary-500 text-white hover:bg-primary-600 focus:ring-primary-500;}.btn-secondary {@apply bg-secondary-500 text-white hover:bg-secondary-600 focus:ring-secondary-500;}.btn-outline {@apply border border-gray-200 text-gray-700 hover:bg-gray-50 focus:ring-gray-200;background: rgba(255, 255, 255, 0.8);}/* Modern Card Styles */.card {@apply bg-white rounded-2xl transition-all duration-300;background: rgba(255, 255, 255, 0.7);backdrop-filter: blur(10px);border: 1px solid rgba(0, 0, 0, 0.05);box-shadow: var(--shadow-sm);}.card:hover {box-shadow: var(--shadow);transform: translateY(-2px);}.card-header {@apply px-6 py-4 border-b border-gray-100;}.card-title {@apply text-xl font-bold text-gray-900;}.card-body {@apply p-6;}.card-footer {@apply px-6 py-4 border-t border-gray-100;}/* Modern Table Styles */.table-container {@apply overflow-x-auto rounded-2xl;}.table {@apply min-w-full divide-y divide-gray-100;background: rgba(255, 255, 255, 0.7);backdrop-filter: blur(10px);border: 1px solid rgba(0, 0, 0, 0.05);box-shadow: var(--shadow-sm);}.table th {@apply px-6 py-3.5 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;background: rgba(0, 0, 0, 0.02);}.table td {@apply px-6 py-4 text-sm text-gray-800;}.table tr {@apply hover:bg-gray-50/50 transition-colors duration-200;}.table tr:not(:last-child) {border-bottom: 1px solid rgba(0, 0, 0, 0.03);}/* Modern Modal Styles */.modal-overlay {@apply fixed inset-0 flex items-center justify-center z-50 p-4;background: rgba(0, 0, 0, 0.4);backdrop-filter: blur(4px);}.modal-content {@apply bg-white rounded-2xl shadow-2xl w-full max-w-2xl transform transition-all duration-300;animation: modalFadeIn 0.3s ease-out;}@keyframes modalFadeIn {from {opacity: 0;transform: translateY(10px);}to {opacity: 1;transform: translateY(0);}}.modal-content.closing {animation: modalFadeOut 0.2s ease-in;}@keyframes modalFadeOut {from {opacity: 1;transform: translateY(0);}to {opacity: 0;transform: translateY(10px);}}/* Modern Loading States */.spinner {@apply animate-spin rounded-full border-[3px] border-gray-200 border-t-primary-500;}.skeleton {@apply bg-gray-100 rounded-xl animate-pulse;}.skeleton-text {@apply h-4 bg-gray-100 rounded-full animate-pulse;}.progress-bar {@apply w-full h-2 bg-gray-100 rounded-full overflow-hidden;}.progress-bar-fill {@apply h-full bg-primary-500 rounded-full;transition: width 0.6s ease;}/* Modern Role Badges */.role-badge {@apply px-3 py-1 rounded-xl text-xs font-medium inline-flex items-center;transition: all 0.2s ease;box-shadow: var(--shadow-sm);}.role-admin {@apply bg-violet-100 text-violet-800;}.role-manager {@apply bg-blue-100 text-blue-800;}.role-analyst {@apply bg-emerald-100 text-emerald-800;}.role-badge i {@apply mr-1 w-3 h-3;}/* Modern Animations */.fade-in {animation: fadeIn 0.3s ease-out;}@keyframes fadeIn {from { opacity: 0; }to { opacity: 1; }}.slide-in {animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);}@keyframes slideIn {from {transform: translateY(20px);opacity: 0;}to {transform: translateY(0);opacity: 1;}}.scale-in {animation: scaleIn 0.3s ease-out;}@keyframes scaleIn {from {transform: scale(0.95);opacity: 0;}to {transform: scale(1);opacity: 1;}}.hover-scale {transition: transform 0.3s ease;}.hover-scale:hover {transform: scale(1.02);}/* Modern Responsive Adjustments */@media (max-width: 768px) {.action-card {@apply justify-center py-3;}.action-card span {@apply text-sm;}.table th, .table td {@apply px-4 py-3;}.modal-content {@apply max-w-full;}}/* Dark Mode Support */@media (prefers-color-scheme: dark) {:root {--dark: #f8fafc;--light: #1e293b;}body {@apply bg-gray-900 text-gray-100;}.card, .table, .form-input, .form-select {@apply bg-gray-800 border-gray-700 text-gray-100;}.form-input::placeholder, .form-select::placeholder {@apply text-gray-400;}.action-card, .activity-item {@apply bg-gray-800 border-gray-700;}.action-card:hover, .activity-item:hover {@apply bg-gray-700;}.table th {@apply bg-gray-700 text-gray-300;}.table tr {@apply hover:bg-gray-700;}}
script.js+254-92
style.css+291-75