37354-vm/assets/css/custom.css
2026-01-11 03:16:53 +00:00

152 lines
2.9 KiB
CSS

/* General Body Styles */
body {
background-color: #f8f9fa;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Sidebar Styles */
.sidebar {
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 280px;
background-color: #fff;
border-right: 1px solid #dee2e6;
z-index: 1000;
transition: all 0.3s;
}
.sidebar-header {
padding: 1.5rem;
border-bottom: 1px solid #dee2e6;
font-size: 1.5rem;
font-weight: 700;
color: #0d6efd;
}
.sidebar .nav-link {
display: flex;
align-items: center;
padding: 0.75rem 1.5rem;
color: #495057;
font-weight: 500;
transition: all 0.2s ease-in-out;
}
.sidebar .nav-link .bi {
margin-right: 1rem;
font-size: 1.2rem;
width: 20px;
text-align: center;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
background-color: #e9ecef;
color: #0d6efd;
}
/* Main Content Styles */
.main-content {
margin-left: 280px;
padding: 2rem;
transition: all 0.3s;
}
/* Header Styles */
.header {
margin-bottom: 2rem;
}
.header h1 {
font-weight: 700;
}
/* Dashboard Stat Cards */
.stat-card {
border: none;
border-radius: 0.5rem;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.stat-card .card-body {
display: flex;
align-items: center;
justify-content: space-between;
}
.stat-card .stat-icon {
font-size: 2.5rem;
opacity: 0.3;
}
.stat-card .stat-number {
font-size: 2.25rem;
font-weight: 700;
}
.stat-card .card-title {
font-weight: 500;
color: #6c757d;
}
/* Responsive Styles */
@media (max-width: 991.98px) {
.sidebar {
left: -280px;
}
.main-content {
margin-left: 0;
}
.sidebar.active {
left: 0;
}
}
/* Custom Stat Card Colors for Readability (Variation 2) */
.stat-card.text-bg-primary,
.stat-card.text-bg-success,
.stat-card.text-bg-danger,
.stat-card.text-bg-warning {
background-color: #f8f9fa !important; /* A very light grey, almost white */
border: 1px solid #e9ecef;
}
.stat-card.text-bg-primary .stat-number,
.stat-card.text-bg-primary .stat-icon {
color: #0d6efd !important;
}
.stat-card.text-bg-success .stat-number,
.stat-card.text-bg-success .stat-icon {
color: #198754 !important;
}
.stat-card.text-bg-danger .stat-number,
.stat-card.text-bg-danger .stat-icon {
color: #dc3545 !important;
}
.stat-card.text-bg-warning .stat-number,
.stat-card.text-bg-warning .stat-icon {
color: #ffc107 !important;
}
/* Titles and icons should have a consistent, readable color */
.stat-card .card-title {
color: #6c757d !important; /* A neutral, secondary text color */
}
.stat-card .stat-icon {
opacity: 0.5; /* Soften the icon color slightly */
}