Files

207 lines
3.5 KiB
CSS
Raw Permalink Normal View History

2026-01-17 13:46:20 +02:00
/* Additional custom styles for the monitoring dashboard */
/* Smooth transitions */
* {
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Status indicators */
.status-online::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #10b981;
margin-right: 8px;
animation: pulse 2s infinite;
}
.status-down::before {
content: '';
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #ef4444;
margin-right: 8px;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Loading spinner */
.spinner {
border: 3px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
2026-03-28 22:07:06 +02:00
border-top: 3px solid #0ea5e9;
2026-01-17 13:46:20 +02:00
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Dark mode scrollbar */
.dark::-webkit-scrollbar {
width: 12px;
}
.dark::-webkit-scrollbar-track {
background: var(--bg-secondary);
}
.dark::-webkit-scrollbar-thumb {
background: #4b5563;
border-radius: 6px;
}
.dark::-webkit-scrollbar-thumb:hover {
background: #6b7280;
}
/* Hover effects for cards */
.card {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.dark .card:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* Alert animations */
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.alert {
animation: slideIn 0.3s ease;
}
/* Chart container */
.chart-container {
position: relative;
height: 300px;
}
/* Responsive table improvements */
@media (max-width: 768px) {
.table-responsive {
border: none;
}
.table-responsive table {
font-size: 0.875rem;
}
}
/* Badge improvements */
.badge {
font-weight: 500;
padding: 0.375rem 0.75rem;
}
/* Button focus states */
.btn:focus {
2026-03-28 22:07:06 +02:00
outline: 2px solid #0ea5e9;
2026-01-17 13:46:20 +02:00
outline-offset: 2px;
}
/* Custom utilities */
.text-truncate-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Sidebar hover effect */
.sidebar-nav-link {
position: relative;
}
.sidebar-nav-link::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 3px;
2026-03-28 22:07:06 +02:00
background-color: #0ea5e9;
2026-01-17 13:46:20 +02:00
transform: scaleY(0);
transition: transform 0.2s ease;
}
.sidebar-nav-link:hover::before,
.sidebar-nav-link.active::before {
transform: scaleY(1);
}
/* Notification dot */
.notification-dot {
position: absolute;
top: -4px;
right: -4px;
width: 8px;
height: 8px;
background-color: #ef4444;
border-radius: 50%;
border: 2px solid var(--bg-primary);
}
/* Empty state illustrations */
.empty-state {
text-align: center;
padding: 3rem 1rem;
color: var(--text-secondary);
}
.empty-state i {
font-size: 3rem;
opacity: 0.5;
margin-bottom: 1rem;
}
/* Progress bars */
.progress-thin {
height: 4px;
}
/* Card stat improvements */
.card-stat {
2026-03-28 22:07:06 +02:00
border-left: 4px solid #0ea5e9;
2026-01-17 13:46:20 +02:00
}
.card-stat.success {
border-left-color: #10b981;
}
.card-stat.danger {
border-left-color: #ef4444;
}
.card-stat.warning {
border-left-color: #f59e0b;
}