38505-vm/static/css/custom.css
2026-02-17 06:26:19 +00:00

183 lines
3.5 KiB
CSS

:root {
--primary-color: #2563eb;
--primary-hover: #1d4ed8;
--secondary-color: #64748b;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--background-color: #f8fafc;
--card-bg: #ffffff;
--sidebar-bg: #1e293b;
--sidebar-text: #f1f5f9;
--text-main: #1e293b;
--text-muted: #64748b;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--background-color);
color: var(--text-main);
overflow-x: hidden;
margin: 0;
}
/* Sidebar Styles */
.sidebar {
width: 260px;
height: 100vh;
position: fixed;
left: 0;
top: 0;
background-color: var(--sidebar-bg);
color: var(--sidebar-text);
padding: 1.5rem;
z-index: 1000;
display: flex;
flex-direction: column;
}
.sidebar-brand {
font-size: 1.25rem;
font-weight: 700;
margin-bottom: 2.5rem;
display: flex;
align-items: center;
color: #fff;
text-decoration: none;
}
.sidebar-brand i {
margin-right: 0.75rem;
color: var(--primary-color);
}
.nav-menu {
flex-grow: 1;
}
.nav-link {
color: #94a3b8;
padding: 0.75rem 1rem;
border-radius: 0.5rem;
margin-bottom: 0.25rem;
transition: all 0.2s;
display: flex;
align-items: center;
text-decoration: none;
}
.nav-link:hover, .nav-link.active {
background-color: rgba(255, 255, 255, 0.1);
color: #fff;
}
.nav-link i {
width: 20px;
margin-right: 0.75rem;
}
/* Main Content Area */
.main-content {
margin-left: 260px;
padding: 2rem;
min-height: 100vh;
}
.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
/* Card Styles */
.stat-card {
background: var(--card-bg);
border-radius: 1rem;
padding: 1.5rem;
border: 1px solid #e2e8f0;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.card-icon {
width: 48px;
height: 48px;
border-radius: 0.75rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
margin-bottom: 1rem;
}
.icon-blue { background: #dbeafe; color: #1e40af; }
.icon-green { background: #dcfce7; color: #166534; }
.icon-orange { background: #fef3c7; color: #92400e; }
.icon-red { background: #fee2e2; color: #991b1b; }
/* Date Badge */
.date-badge {
background: #fff;
padding: 0.5rem 1rem;
border-radius: 0.75rem;
font-size: 0.875rem;
border: 1px solid #e2e8f0;
display: flex;
gap: 1rem;
font-weight: 500;
}
/* Table Styles */
.table-card {
background: white;
border-radius: 1rem;
overflow: hidden;
border: 1px solid #e2e8f0;
}
.table thead th {
background-color: #f8fafc;
color: var(--text-muted);
font-weight: 600;
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.05em;
padding: 1rem 1.5rem;
border-bottom: 1px solid #e2e8f0;
}
.table tbody td {
padding: 1rem 1.5rem;
vertical-align: middle;
}
/* Status Badges */
.status-pill {
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 600;
}
.badge-present { background-color: #dcfce7; color: #166534; }
.badge-absent { background-color: #fee2e2; color: #991b1b; }
.badge-late { background-color: #fef3c7; color: #92400e; }
.badge-leave { background-color: #dbeafe; color: #1e40af; }
/* Buttons */
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
}
.btn-primary:hover {
background-color: var(--primary-hover);
border-color: var(--primary-hover);
}