267 lines
5.1 KiB
CSS
267 lines
5.1 KiB
CSS
/* Main Styles */
|
|
|
|
:root {
|
|
--color-primary: #3b82f6;
|
|
--color-primary-dark: #1e40af;
|
|
--color-success: #10b981;
|
|
--color-warning: #f59e0b;
|
|
--color-danger: #ef4444;
|
|
--transition-speed: 0.3s;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
|
|
.font-mono {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
}
|
|
|
|
/* Common Components */
|
|
|
|
.card {
|
|
@apply bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-800 rounded-xl shadow-sm hover:shadow-md transition-shadow;
|
|
}
|
|
|
|
.glass-panel {
|
|
@apply backdrop-filter backdrop-blur-md border;
|
|
}
|
|
|
|
.glass-panel-light {
|
|
@apply bg-white/95 border-slate-200/50;
|
|
}
|
|
|
|
.glass-panel-dark {
|
|
@apply bg-slate-900/95 dark:bg-slate-900/95 border-slate-700/50;
|
|
}
|
|
|
|
/* Buttons */
|
|
|
|
.btn {
|
|
@apply px-4 py-2 rounded-lg font-medium transition-all duration-200 flex items-center justify-center gap-2;
|
|
}
|
|
|
|
.btn-primary {
|
|
@apply bg-blue-600 hover:bg-blue-700 text-white shadow-lg shadow-blue-600/30 hover:shadow-blue-600/50 active:scale-95;
|
|
}
|
|
|
|
.btn-secondary {
|
|
@apply bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-700 active:scale-95;
|
|
}
|
|
|
|
.btn-danger {
|
|
@apply bg-red-600 hover:bg-red-700 text-white shadow-lg shadow-red-600/30 active:scale-95;
|
|
}
|
|
|
|
/* Input Fields */
|
|
|
|
.input-field {
|
|
@apply w-full px-4 py-2.5 border border-slate-300 dark:border-slate-600 rounded-lg bg-white dark:bg-slate-800 text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-slate-500 focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:focus:ring-blue-400 outline-none transition-all;
|
|
}
|
|
|
|
.input-field:disabled {
|
|
@apply bg-slate-100 dark:bg-slate-900 cursor-not-allowed opacity-50;
|
|
}
|
|
|
|
/* Navigation Items */
|
|
|
|
.nav-item {
|
|
@apply text-slate-600 dark:text-slate-400 hover:bg-slate-100 dark:hover:bg-slate-800 hover:text-slate-900 dark:hover:text-white;
|
|
}
|
|
|
|
.nav-item.active {
|
|
@apply bg-blue-50 dark:bg-blue-900/30 text-blue-600 dark:text-blue-400 font-semibold;
|
|
}
|
|
|
|
/* Auth Tab Buttons */
|
|
|
|
.auth-tab-btn {
|
|
@apply text-slate-700 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-all;
|
|
}
|
|
|
|
.auth-tab-btn.active {
|
|
@apply bg-white dark:bg-slate-900 text-slate-900 dark:text-white shadow-sm;
|
|
}
|
|
|
|
/* Animations */
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.fade-in {
|
|
animation: fadeIn var(--transition-speed) ease-in;
|
|
}
|
|
|
|
.slide-in {
|
|
animation: slideIn var(--transition-speed) ease-in;
|
|
}
|
|
|
|
/* Scrollbar Styling */
|
|
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #f1f5f9;
|
|
}
|
|
|
|
.dark ::-webkit-scrollbar-track {
|
|
background: #1e293b;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #94a3b8;
|
|
}
|
|
|
|
.dark ::-webkit-scrollbar-thumb {
|
|
background: #475569;
|
|
}
|
|
|
|
.dark ::-webkit-scrollbar-thumb:hover {
|
|
background: #64748b;
|
|
}
|
|
|
|
/* Status Indicators */
|
|
|
|
.status-badge {
|
|
@apply inline-flex items-center gap-1 px-3 py-1 rounded-full text-xs font-semibold;
|
|
}
|
|
|
|
.status-online {
|
|
@apply bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400;
|
|
}
|
|
|
|
.status-offline {
|
|
@apply bg-slate-100 dark:bg-slate-800 text-slate-700 dark:text-slate-400;
|
|
}
|
|
|
|
.status-warning {
|
|
@apply bg-yellow-100 dark:bg-yellow-900/30 text-yellow-700 dark:text-yellow-400;
|
|
}
|
|
|
|
.status-error {
|
|
@apply bg-red-100 dark:bg-red-900/30 text-red-700 dark:text-red-400;
|
|
}
|
|
|
|
/* Loading Spinner */
|
|
|
|
.loader {
|
|
display: inline-block;
|
|
border: 3px solid rgba(100, 116, 139, 0.2);
|
|
border-top-color: #3b82f6;
|
|
border-radius: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
/* Tables */
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead {
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.dark thead {
|
|
background: #1e293b;
|
|
}
|
|
|
|
tbody tr {
|
|
@apply hover:bg-slate-50 dark:hover:bg-slate-800 transition-colors;
|
|
}
|
|
|
|
td, th {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
/* Modal Overlay */
|
|
|
|
.modal-overlay {
|
|
@apply fixed inset-0 bg-black/50 backdrop-blur-sm z-50 flex items-center justify-center;
|
|
}
|
|
|
|
/* Utility Classes */
|
|
|
|
.text-truncate {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.line-clamp-2 {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.shadow-sm {
|
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* Focus visible for accessibility */
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--color-primary);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
input:focus-visible,
|
|
button:focus-visible,
|
|
select:focus-visible {
|
|
outline: none !important;
|
|
}
|