ricardo-everysys's picture
modernizae
8ef3bd7 verified
Raw History Blame Contribute Delete
8.97 kB
/* 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;
}
}