helg / styles.css
Subham9126's picture
Rename style.css to styles.css
cabc088 verified
Raw
History Blame Contribute Delete
28.1 kB
/* ===================================
Vehicle Maintenance Management System
Complete CSS Stylesheet
=================================== */
/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #333;
background-color: #f5f7fa;
overflow-x: hidden;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* ===================================
SIDEBAR NAVIGATION
=================================== */
.sidebar {
position: fixed;
left: 0;
top: 0;
width: 280px;
height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 0;
z-index: 1000;
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;
}
.sidebar.mobile-hidden {
transform: translateX(-100%);
}
.logo {
text-align: center;
padding: 30px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.05);
}
.logo h2 {
font-size: 1.6rem;
font-weight: 700;
margin: 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.nav-menu {
list-style: none;
padding: 20px 0;
margin: 0;
}
.nav-menu li {
margin: 0;
}
.nav-link {
display: block;
padding: 18px 25px;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: all 0.3s ease;
font-weight: 500;
font-size: 1rem;
position: relative;
border-left: 4px solid transparent;
}
.nav-link::before {
content: '';
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 4px;
background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
transform: scaleY(0);
transition: transform 0.3s ease;
}
.nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
color: white;
padding-left: 35px;
}
.nav-link:hover::before {
transform: scaleY(1);
}
.nav-link.active {
background-color: rgba(255, 255, 255, 0.15);
color: white;
border-left-color: #4ecdc4;
font-weight: 600;
}
.nav-link.active::before {
transform: scaleY(1);
}
/* Mobile Menu Toggle */
.menu-toggle {
display: none;
position: fixed;
top: 20px;
left: 20px;
z-index: 1001;
background: #667eea;
color: white;
border: none;
padding: 12px;
border-radius: 8px;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
transition: all 0.3s ease;
}
.menu-toggle:hover {
background: #5a6fd8;
transform: translateY(-2px);
}
/* ===================================
MAIN CONTENT AREA
=================================== */
.main-content {
margin-left: 280px;
padding: 40px;
min-height: 100vh;
background: #f5f7fa;
transition: margin-left 0.3s ease;
}
/* ===================================
PAGE MANAGEMENT
=================================== */
.page {
display: none;
animation: fadeIn 0.4s ease-in-out;
}
.page.active {
display: block;
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid #e1e8ed;
}
.page-header h1 {
color: #2d3748;
font-size: 2.5rem;
font-weight: 700;
margin: 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.page-controls {
display: flex;
gap: 15px;
align-items: center;
flex-wrap: wrap;
}
/* ===================================
DASHBOARD STYLES
=================================== */
.dashboard-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 25px;
margin-bottom: 50px;
}
.card {
background: white;
padding: 30px;
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.8);
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}
.card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(135deg, #667eea, #764ba2);
}
.card:hover {
transform: translateY(-8px);
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.card.overdue::before {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}
.card.upcoming::before {
background: linear-gradient(135deg, #ffa726, #ff7043);
}
.card h3 {
color: #718096;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 1.2px;
margin-bottom: 15px;
font-weight: 600;
}
.card .stat {
font-size: 3rem;
font-weight: 800;
color: #2d3748;
margin: 10px 0;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.card.overdue .stat {
color: #e53e3e;
}
.card.upcoming .stat {
color: #ff7043;
}
/* Alerts Section */
.alerts-section {
background: white;
border-radius: 16px;
padding: 35px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.8);
}
.alerts-section h2 {
color: #2d3748;
margin-bottom: 25px;
font-size: 1.5rem;
font-weight: 600;
}
.alert-item {
padding: 20px;
border-radius: 12px;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 20px;
transition: all 0.3s ease;
border: 1px solid transparent;
}
.alert-item:hover {
transform: translateX(8px);
}
.alert-item.overdue {
background: linear-gradient(135deg, #fed7d7, #feb2b2);
border-left: 5px solid #e53e3e;
color: #742a2a;
}
.alert-item.upcoming {
background: linear-gradient(135deg, #feebc8, #fbd38d);
border-left: 5px solid #ff7043;
color: #7b341e;
}
.alert-icon {
font-size: 1.5rem;
min-width: 24px;
}
.alert-content h4 {
margin-bottom: 8px;
font-weight: 600;
font-size: 1.1rem;
}
.alert-content p {
font-size: 0.95rem;
opacity: 0.8;
}
.no-alerts {
text-align: center;
color: #a0aec0;
font-style: italic;
font-size: 1.1rem;
padding: 40px 0;
}
/* ===================================
TABLE STYLES
=================================== */
.table-container {
background: white;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.8);
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.95rem;
}
th, td {
padding: 18px 20px;
text-align: left;
border-bottom: 1px solid #e2e8f0;
}
th {
background: linear-gradient(135deg, #f7fafc, #edf2f7);
font-weight: 600;
color: #4a5568;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.8px;
border-bottom: 2px solid #e2e8f0;
}
tbody tr {
transition: all 0.3s ease;
}
tbody tr:hover {
background: linear-gradient(135deg, #f0fff4, #f7fafc);
transform: scale(1.01);
}
.no-data {
text-align: center;
color: #a0aec0;
font-style: italic;
padding: 60px 20px;
font-size: 1.1rem;
}
/* ===================================
BUTTON STYLES
=================================== */
.btn {
padding: 12px 24px;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
min-width: 120px;
text-align: center;
position: relative;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
transition: left 0.5s ease;
}
.btn:hover::before {
left: 100%;
}
.btn-primary {
background: linear-gradient(135deg, #667eea, #764ba2);
color: white;
}
.btn-primary:hover {
background: linear-gradient(135deg, #5a6fd8, #6a4190);
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
background: linear-gradient(135deg, #a0aec0, #718096);
color: white;
}
.btn-secondary:hover {
background: linear-gradient(135deg, #8fa4b3, #5f6c81);
transform: translateY(-3px);
}
.btn-danger {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
color: white;
}
.btn-danger:hover {
background: linear-gradient(135deg, #ff5252, #e04848);
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}
.btn-warning {
background: linear-gradient(135deg, #ffa726, #ff7043);
color: white;
}
.btn-warning:hover {
background: linear-gradient(135deg, #ff9800, #ff5722);
transform: translateY(-3px);
box-shadow: 0 8px 24px rgba(255, 167, 38, 0.3);
}
.btn-small {
padding: 8px 16px;
font-size: 0.85rem;
min-width: 90px;
border-radius: 8px;
}
.btn:disabled {
background: #e2e8f0;
color: #a0aec0;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.btn:disabled:hover {
transform: none;
}
.action-buttons {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
/* ===================================
MODAL STYLES
=================================== */
.modal {
display: none;
position: fixed;
z-index: 2000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(8px);
animation: fadeIn 0.3s ease;
}
.modal-content {
background: white;
margin: 3% auto;
border-radius: 20px;
width: 90%;
max-width: 600px;
box-shadow: 0 20px 80px rgba(0, 0, 0, 0.2);
animation: slideInUp 0.4s ease;
overflow: hidden;
position: relative;
}
.modal-content::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(135deg, #667eea, #764ba2);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 25px 30px;
background: linear-gradient(135deg, #f8fafc, #e2e8f0);
border-bottom: 1px solid #e2e8f0;
}
.modal-header h2 {
color: #2d3748;
font-size: 1.4rem;
font-weight: 600;
margin: 0;
}
.close {
color: #a0aec0;
font-size: 32px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.close:hover {
color: #e53e3e;
background: rgba(229, 62, 62, 0.1);
transform: rotate(90deg);
}
/* ===================================
FORM STYLES
=================================== */
form {
padding: 30px;
}
.form-group {
margin-bottom: 25px;
}
.form-group label {
display: block;
margin-bottom: 10px;
font-weight: 600;
color: #2d3748;
font-size: 1rem;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 14px 18px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-size: 1rem;
transition: all 0.3s ease;
background: #f7fafc;
color: #2d3748;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: #667eea;
background: white;
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
transform: translateY(-2px);
}
.form-group textarea {
resize: vertical;
min-height: 100px;
font-family: inherit;
}
.form-group small {
display: block;
margin-top: 8px;
color: #718096;
font-size: 0.9rem;
line-height: 1.4;
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 15px;
margin-top: 30px;
padding-top: 25px;
border-top: 1px solid #e2e8f0;
}
/* ===================================
CONFIG PAGE STYLES
=================================== */
.config-container {
max-width: 700px;
background: white;
border-radius: 20px;
padding: 40px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(255, 255, 255, 0.8);
position: relative;
overflow: hidden;
}
.config-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 5px;
background: linear-gradient(135deg, #667eea, #764ba2);
}
.config-actions {
display: flex;
gap: 20px;
justify-content: flex-end;
margin-top: 40px;
flex-wrap: wrap;
}
.config-help {
margin-top: 40px;
padding: 30px;
background: linear-gradient(135deg, #f0fff4, #e6fffa);
border-radius: 16px;
border-left: 5px solid #48bb78;
position: relative;
}
.config-help::before {
content: '💡';
position: absolute;
top: 20px;
left: 20px;
font-size: 1.5rem;
}
.config-help h3 {
color: #2d3748;
margin-bottom: 20px;
font-size: 1.2rem;
padding-left: 40px;
}
.config-help ol {
margin-left: 40px;
color: #4a5568;
}
.config-help li {
margin-bottom: 12px;
line-height: 1.6;
padding-left: 10px;
}
/* ===================================
STATUS MESSAGES
=================================== */
.status-message {
padding: 20px 25px;
border-radius: 12px;
margin-top: 25px;
font-weight: 500;
border: 1px solid transparent;
display: flex;
align-items: center;
gap: 15px;
}
.status-message::before {
font-size: 1.2rem;
}
.status-message.success {
background: linear-gradient(135deg, #f0fff4, #c6f6d5);
color: #22543d;
border-color: #9ae6b4;
}
.status-message.success::before {
content: '✅';
}
.status-message.error {
background: linear-gradient(135deg, #fed7d7, #feb2b2);
color: #742a2a;
border-color: #fc8181;
}
.status-message.error::before {
content: '❌';
}
.status-message.info {
background: linear-gradient(135deg, #bee3f8, #90cdf4);
color: #2a4365;
border-color: #63b3ed;
}
.status-message.info::before {
content: 'ℹ️';
}
/* ===================================
LOADING OVERLAY
=================================== */
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(8px);
display: flex;
justify-content: center;
align-items: center;
z-index: 3000;
animation: fadeIn 0.3s ease;
}
.loading-spinner {
text-align: center;
}
.spinner {
border: 4px solid #f3f4f6;
border-top: 4px solid #667eea;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
.loading-spinner p {
color: #4a5568;
font-weight: 500;
font-size: 1.1rem;
}
/* ===================================
TOAST NOTIFICATIONS
=================================== */
.toast-container {
position: fixed;
top: 30px;
right: 30px;
z-index: 4000;
max-width: 400px;
}
.toast {
background: white;
border-radius: 12px;
padding: 20px 25px;
margin-bottom: 15px;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
border-left: 5px solid #667eea;
animation: slideInRight 0.4s ease;
position: relative;
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
}
.toast:hover {
transform: translateX(-5px);
}
.toast::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 5px;
height: 100%;
background: linear-gradient(135deg, #667eea, #764ba2);
}
.toast.success {
border-left-color: #48bb78;
}
.toast.success::before {
background: linear-gradient(135deg, #48bb78, #38a169);
}
.toast.error {
border-left-color: #e53e3e;
}
.toast.error::before {
background: linear-gradient(135deg, #e53e3e, #c53030);
}
.toast.warning {
border-left-color: #ed8936;
}
.toast.warning::before {
background: linear-gradient(135deg, #ed8936, #dd6b20);
}
.toast-title {
font-weight: 600;
margin-bottom: 8px;
color: #2d3748;
font-size: 1rem;
}
.toast-message {
color: #4a5568;
font-size: 0.95rem;
line-height: 1.4;
}
/* ===================================
ANIMATIONS
=================================== */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideInUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideInRight {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
/* ===================================
UTILITY CLASSES
=================================== */
.text-center {
text-align: center;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-success {
color: #48bb78;
}
.text-danger {
color: #e53e3e;
}
.text-warning {
color: #ed8936;
}
.text-info {
color: #4299e1;
}
.text-muted {
color: #a0aec0;
}
.bg-success {
background-color: #48bb78;
}
.bg-danger {
background-color: #e53e3e;
}
.bg-warning {
background-color: #ed8936;
}
.bg-info {
background-color: #4299e1;
}
.mb-0 {
margin-bottom: 0;
}
.mt-10 {
margin-top: 10px;
}
.mt-20 {
margin-top: 20px;
}
.p-0 {
padding: 0;
}
.hidden {
display: none;
}
.visible {
display: block;
}
.flex {
display: flex;
}
.flex-center {
display: flex;
justify-content: center;
align-items: center;
}
.flex-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.w-full {
width: 100%;
}
.h-full {
height: 100%;
}
/* ===================================
RESPONSIVE DESIGN
=================================== */
@media (max-width: 1200px) {
.main-content {
padding: 30px;
}
.dashboard-cards {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
}
@media (max-width: 992px) {
.menu-toggle {
display: block;
}
.sidebar {
transform: translateX(-100%);
}
.sidebar.mobile-open {
transform: translateX(0);
}
.main-content {
margin-left: 0;
padding: 80px 25px 25px;
}
.page-header {
flex-direction: column;
align-items: stretch;
gap: 20px;
text-align: center;
}
.page-header h1 {
font-size: 2rem;
}
.page-controls {
justify-content: center;
}
.modal-content {
margin: 5% auto;
width: 95%;
}
.config-actions {
flex-direction: column;
}
.action-buttons {
flex-direction: column;
gap: 10px;
}
.btn {
width: 100%;
}
.btn-small {
min-width: auto;
}
.toast-container {
right: 15px;
left: 15px;
max-width: none;
}
}
@media (max-width: 768px) {
.main-content {
padding: 80px 20px 20px;
}
.dashboard-cards {
grid-template-columns: 1fr;
gap: 15px;
}
.card {
padding: 25px 20px;
}
.card .stat {
font-size: 2.5rem;
}
.alerts-section {
padding: 25px 20px;
}
.alert-item {
padding: 15px;
gap: 15px;
}
th, td {
padding: 12px 10px;
font-size: 0.9rem;
}
.table-container {
overflow-x: auto;
}
table {
min-width: 600px;
}
form {
padding: 25px 20px;
}
.modal-header {
padding: 20px 25px;
}
.modal-header h2 {
font-size: 1.3rem;
}
.config-container {
padding: 30px 25px;
}
.config-help {
padding: 25px 20px;
}
}
@media (max-width: 480px) {
.main-content {
padding: 80px 15px 15px;
}
.page-header h1 {
font-size: 1.8rem;
}
.card .stat {
font-size: 2rem;
}
th, td {
padding: 10px 8px;
font-size: 0.85rem;
}
.btn {
padding: 10px 16px;
font-size: 0.9rem;
min-width: 100px;
}
.btn-small {
padding: 8px 12px;
font-size: 0.8rem;
}
.modal-content {
margin: 2% auto;
width: 98%;
border-radius: 12px;
}
.modal-header {
padding: 15px 20px;
}
.modal-header h2 {
font-size: 1.2rem;
}
form {
padding: 20px 15px;
}
.form-group input,
.form-group select,
.form-group textarea {
padding: 12px 15px;
font-size: 0.95rem;
}
.config-container {
padding: 25px 20px;
}
.config-help {
padding: 20px 15px;
}
.config-help h3 {
font-size: 1.1rem;
padding-left: 35px;
}
.config-help ol {
margin-left: 35px;
}
.alerts-section {
padding: 20px 15px;
}
.alert-item {
padding: 12px;
gap: 12px;
flex-direction: column;
text-align: center;
}
.alert-content h4 {
font-size: 1rem;
}
.alert-content p {
font-size: 0.9rem;
}
.toast {
padding: 15px 20px;
margin-bottom: 10px;
}
.toast-title {
font-size: 0.95rem;
}
.toast-message {
font-size: 0.9rem;
}
}
/* ===================================
PRINT STYLES
=================================== */
@media print {
.sidebar,
.menu-toggle,
.btn,
.modal,
.loading-overlay,
.toast-container {
display: none !important;
}
.main-content {
margin-left: 0;
padding: 0;
background: white;
}
.page {
display: block !important;
}
.page:not(.active) {
display: none !important;
}
.card {
break-inside: avoid;
box-shadow: none;
border: 1px solid #ddd;
}
.table-container {
box-shadow: none;
border: 1px solid #ddd;
}
.alerts-section {
box-shadow: none;
border: 1px solid #ddd;
}
}
/* ===================================
DARK MODE SUPPORT (Optional)
=================================== */
@media (prefers-color-scheme: dark) {
:root {
--bg-primary: #1a202c;
--bg-secondary: #2d3748;
--text-primary: #f7fafc;
--text-secondary: #e2e8f0;
--border-color: #4a5568;
}
/* Uncomment below to enable dark mode */
/*
body {
background-color: var(--bg-primary);
color: var(--text-primary);
}
.card,
.table-container,
.alerts-section,
.modal-content,
.config-container {
background-color: var(--bg-secondary);
border-color: var(--border-color);
color: var(--text-primary);
}
th {
background: #374151;
color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
background-color: var(--bg-primary);
border-color: var(--border-color);
color: var(--text-primary);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
background-color: var(--bg-secondary);
}
*/
}
/* ===================================
ACCESSIBILITY IMPROVEMENTS
=================================== */
/* Focus indicators */
button:focus,
input:focus,
select:focus,
textarea:focus,
.nav-link:focus {
outline: 3px solid rgba(102, 126, 234, 0.5);
outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.btn-primary {
background: #000;
border: 2px solid #fff;
}
.btn-secondary {
background: #666;
border: 2px solid #fff;
}
.card {
border: 2px solid #333;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.btn:hover {
transform: none;
}
.card:hover {
transform: none;
}
}
/* ===================================
CUSTOM SCROLLBAR FOR WEBKIT
=================================== */
.sidebar::-webkit-scrollbar {
width: 6px;
}
.sidebar::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
}
.sidebar::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
/* ===================================
ADDITIONAL COMPONENT STYLES
=================================== */
/* Loading states for buttons */
.btn.loading {
position: relative;
color: transparent;
pointer-events: none;
}
.btn.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
/* Badges and indicators */
.badge {
display: inline-block;
padding: 4px 8px;
font-size: 0.75rem;
font-weight: 600;
border-radius: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.badge-success {
background-color: #c6f6d5;
color: #22543d;
}
.badge-danger {
background-color: #fed7d7;
color: #742a2a;
}
.badge-warning {
background-color: #feebc8;
color: #7b341e;
}
.badge-info {
background-color: #bee3f8;
color: #2a4365;
}
/* Empty states */
.empty-state {
text-align: center;
padding: 60px 40px;
color: #a0aec0;
}
.empty-state-icon {
font-size: 4rem;
margin-bottom: 20px;
opacity: 0.5;
}
.empty-state-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 10px;
color: #4a5568;
}
.empty-state-description {
font-size: 1rem;
line-height: 1.6;
max-width: 400px;
margin: 0 auto;
}
/* Progress indicators */
.progress {
width: 100%;
height: 8px;
background-color: #e2e8f0;
border-radius: 4px;
overflow: hidden;
}
.progress-bar {
height: 100%;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 4px;
transition: width 0.3s ease;
}
/* Tooltips */
.tooltip {
position: relative;
display: inline-block;
}
.tooltip::before {
content: attr(data-tooltip);
position: absolute;
bottom: 125%;
left: 50%;
transform: translateX(-50%);
background-color: #2d3748;
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.85rem;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 1000;
}
.tooltip::after {
content: '';
position: absolute;
bottom: 117%;
left: 50%;
transform: translateX(-50%);
border: 5px solid transparent;
border-top-color: #2d3748;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.tooltip:hover::before,
.tooltip:hover::after {
opacity: 1;
visibility: visible;
}
/* End of VMMS CSS */