Files
QrCode-Attendance-System/src-backup/assets/css/style.css
2026-01-07 14:09:59 +08:00

141 lines
2.7 KiB
CSS

/* Main Stylesheet */
:root {
--primary-color: #3498db;
--secondary-color: #2c3e50;
--success-color: #27ae60;
--danger-color: #e74c3c;
--warning-color: #f39c12;
--info-color: #17a2b8;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
color: #336494;
margin: 10;
padding: 10px;
}
.login-page {
background: linear-gradient(135deg, #8bea66 0%, #a0a24b 100%);
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.card {
border: none;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.card-header {
border-radius: 15px 15px 0 0 !important;
}
/* Table Styles */
.table-hover tbody tr:hover {
background-color: rgba(52, 152, 219, 0.1);
}
/* Button Styles */
.btn {
border-radius: 8px;
padding: 8px 20px;
font-weight: 500;
transition: all 0.3s;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
/* Badge Styles */
.badge {
padding: 5px 10px;
border-radius: 10px;
font-weight: 500;
}
/* Form Styles */
.form-control {
border-radius: 8px;
border: 1px solid #dee2e6;
padding: 10px 15px;
}
.form-control:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}
/* Alert Styles */
.alert {
border-radius: 10px;
border: none;
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: var(--primary-color);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #2980b9;
}
/* Animation for attendance success */
@keyframes successPulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.attendance-success {
animation: successPulse 0.5s ease-in-out;
}
/* Scanner container */
#qr-reader {
border: 2px dashed #dee2e6;
border-radius: 10px;
padding: 10px;
}
/* Calendar icon */
.calendar-icon {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
text-align: center;
width: 50px;
border-radius: 8px;
}
/* Print styles */
@media print {
.sidebar, .navbar, .btn {
display: none !important;
}
.main-content {
margin-left: 0 !important;
width: 100% !important;
}
}