443 lines
6.9 KiB
CSS
443 lines
6.9 KiB
CSS
|
|
:root {
|
||
|
|
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
|
|
--sidebar-width: 250px;
|
||
|
|
--transition-speed: 0.3s;
|
||
|
|
--primary-color: #667eea;
|
||
|
|
--danger-color: #dc3545;
|
||
|
|
--success-color: #28a745;
|
||
|
|
--warning-color: #ffc107;
|
||
|
|
--info-color: #17a2b8;
|
||
|
|
}
|
||
|
|
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||
|
|
"Helvetica Neue", Arial, sans-serif;
|
||
|
|
background-color: #f8f9fa;
|
||
|
|
overflow-x: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Sidebar Styles */
|
||
|
|
.sidebar {
|
||
|
|
position: fixed;
|
||
|
|
top: 0;
|
||
|
|
left: 0;
|
||
|
|
height: 100vh;
|
||
|
|
width: var(--sidebar-width);
|
||
|
|
background: var(--primary-gradient);
|
||
|
|
padding: 20px;
|
||
|
|
color: white;
|
||
|
|
overflow-y: auto;
|
||
|
|
transition: all var(--transition-speed) ease;
|
||
|
|
z-index: 1000;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-brand {
|
||
|
|
font-size: 1.5rem;
|
||
|
|
font-weight: 700;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
text-align: center;
|
||
|
|
padding: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu {
|
||
|
|
list-style: none;
|
||
|
|
padding: 0;
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu li {
|
||
|
|
margin-bottom: 5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu a {
|
||
|
|
color: rgba(255, 255, 255, 0.9);
|
||
|
|
text-decoration: none;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
padding: 12px 15px;
|
||
|
|
border-radius: 8px;
|
||
|
|
transition: all 0.25s ease;
|
||
|
|
font-size: 0.95rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu a:hover {
|
||
|
|
background: rgba(255, 255, 255, 0.15);
|
||
|
|
color: white;
|
||
|
|
transform: translateX(5px);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu a.active {
|
||
|
|
background: rgba(255, 255, 255, 0.2);
|
||
|
|
color: white;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu i {
|
||
|
|
margin-right: 12px;
|
||
|
|
font-size: 1.2rem;
|
||
|
|
width: 24px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Main Content */
|
||
|
|
.main-content {
|
||
|
|
margin-left: var(--sidebar-width);
|
||
|
|
padding: 30px;
|
||
|
|
min-height: 100vh;
|
||
|
|
transition: margin-left var(--transition-speed) ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Top Bar */
|
||
|
|
.top-bar {
|
||
|
|
background: white;
|
||
|
|
padding: 25px 30px;
|
||
|
|
border-radius: 12px;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
animation: slideDown 0.4s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes slideDown {
|
||
|
|
from {
|
||
|
|
opacity: 0;
|
||
|
|
transform: translateY(-20px);
|
||
|
|
}
|
||
|
|
to {
|
||
|
|
opacity: 1;
|
||
|
|
transform: translateY(0);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.top-bar h3 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 1.75rem;
|
||
|
|
color: #2c3e50;
|
||
|
|
}
|
||
|
|
|
||
|
|
.top-bar p {
|
||
|
|
margin: 5px 0 0 0;
|
||
|
|
color: #6c757d;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Actions Bar */
|
||
|
|
.actions-bar {
|
||
|
|
background: white;
|
||
|
|
padding: 20px;
|
||
|
|
border-radius: 12px;
|
||
|
|
margin-bottom: 20px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
gap: 15px;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
position: relative;
|
||
|
|
flex: 1;
|
||
|
|
max-width: 400px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box i {
|
||
|
|
position: absolute;
|
||
|
|
left: 15px;
|
||
|
|
top: 50%;
|
||
|
|
transform: translateY(-50%);
|
||
|
|
color: #6c757d;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box input {
|
||
|
|
width: 100%;
|
||
|
|
padding: 10px 15px 10px 45px;
|
||
|
|
border: 2px solid #e9ecef;
|
||
|
|
border-radius: 8px;
|
||
|
|
font-size: 0.95rem;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box input:focus {
|
||
|
|
outline: none;
|
||
|
|
border-color: var(--primary-color);
|
||
|
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Cards */
|
||
|
|
.card {
|
||
|
|
background: white;
|
||
|
|
border-radius: 12px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||
|
|
border: none;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Tables */
|
||
|
|
.table-responsive {
|
||
|
|
overflow-x: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table {
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table thead {
|
||
|
|
background: #f8f9fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table thead th {
|
||
|
|
font-weight: 600;
|
||
|
|
color: #2c3e50;
|
||
|
|
border-bottom: 2px solid #e9ecef;
|
||
|
|
padding: 15px;
|
||
|
|
font-size: 0.9rem;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.5px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table tbody td {
|
||
|
|
padding: 15px;
|
||
|
|
vertical-align: middle;
|
||
|
|
color: #495057;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table tbody tr {
|
||
|
|
transition: background-color 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table tbody tr:hover {
|
||
|
|
background-color: #f8f9fa;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Buttons */
|
||
|
|
.btn {
|
||
|
|
padding: 10px 20px;
|
||
|
|
border-radius: 8px;
|
||
|
|
font-weight: 600;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary {
|
||
|
|
background: var(--primary-gradient);
|
||
|
|
border: none;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-primary:hover {
|
||
|
|
transform: translateY(-2px);
|
||
|
|
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-secondary {
|
||
|
|
background: #6c757d;
|
||
|
|
border: none;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-success {
|
||
|
|
background: var(--success-color);
|
||
|
|
border: none;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-danger {
|
||
|
|
background: var(--danger-color);
|
||
|
|
border: none;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-warning {
|
||
|
|
background: var(--warning-color);
|
||
|
|
border: none;
|
||
|
|
color: #212529;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-info {
|
||
|
|
background: var(--info-color);
|
||
|
|
border: none;
|
||
|
|
color: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-logout {
|
||
|
|
background: #dc3545;
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
padding: 12px 24px;
|
||
|
|
border-radius: 8px;
|
||
|
|
font-weight: 600;
|
||
|
|
transition: all 0.3s ease;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-logout:hover {
|
||
|
|
background: #c82333;
|
||
|
|
transform: translateY(-2px);
|
||
|
|
box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
|
||
|
|
}
|
||
|
|
|
||
|
|
.btn-sm {
|
||
|
|
padding: 6px 12px;
|
||
|
|
font-size: 0.875rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Badges */
|
||
|
|
.badge {
|
||
|
|
padding: 6px 12px;
|
||
|
|
border-radius: 6px;
|
||
|
|
font-weight: 600;
|
||
|
|
font-size: 0.75rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge-success {
|
||
|
|
background: #d4edda;
|
||
|
|
color: #155724;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge-danger {
|
||
|
|
background: #f8d7da;
|
||
|
|
color: #721c24;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge-warning {
|
||
|
|
background: #fff3cd;
|
||
|
|
color: #856404;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge-info {
|
||
|
|
background: #d1ecf1;
|
||
|
|
color: #0c5460;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Loading Animation */
|
||
|
|
.loading-spinner {
|
||
|
|
display: inline-block;
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
border: 3px solid rgba(102, 126, 234, 0.3);
|
||
|
|
border-radius: 50%;
|
||
|
|
border-top-color: #667eea;
|
||
|
|
animation: spin 0.8s linear infinite;
|
||
|
|
margin-right: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes spin {
|
||
|
|
to {
|
||
|
|
transform: rotate(360deg);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Form Controls */
|
||
|
|
.form-control:focus {
|
||
|
|
border-color: var(--primary-color);
|
||
|
|
box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
|
||
|
|
}
|
||
|
|
|
||
|
|
.form-check-input:checked {
|
||
|
|
background-color: var(--primary-color);
|
||
|
|
border-color: var(--primary-color);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Modal Enhancements */
|
||
|
|
.modal-content {
|
||
|
|
border-radius: 12px;
|
||
|
|
border: none;
|
||
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header {
|
||
|
|
background: var(--primary-gradient);
|
||
|
|
color: white;
|
||
|
|
border-radius: 12px 12px 0 0;
|
||
|
|
padding: 20px 25px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header .btn-close {
|
||
|
|
filter: brightness(0) invert(1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-body {
|
||
|
|
padding: 25px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-footer {
|
||
|
|
padding: 20px 25px;
|
||
|
|
border-top: 1px solid #e9ecef;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Responsive Design */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.sidebar {
|
||
|
|
transform: translateX(-100%);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar.active {
|
||
|
|
transform: translateX(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
.main-content {
|
||
|
|
margin-left: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.top-bar {
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 15px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.actions-bar {
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: stretch;
|
||
|
|
}
|
||
|
|
|
||
|
|
.search-box {
|
||
|
|
max-width: 100%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Utility Classes */
|
||
|
|
.text-center {
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mt-3 {
|
||
|
|
margin-top: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.mb-3 {
|
||
|
|
margin-bottom: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
.p-3 {
|
||
|
|
padding: 1rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Section Headings */
|
||
|
|
.section-heading {
|
||
|
|
font-size: 1.5rem;
|
||
|
|
font-weight: 700;
|
||
|
|
color: #2c3e50;
|
||
|
|
margin: 40px 0 20px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.section-heading::after {
|
||
|
|
content: "";
|
||
|
|
flex: 1;
|
||
|
|
height: 2px;
|
||
|
|
background: linear-gradient(to right, #667eea, transparent);
|
||
|
|
}
|