TKK_E32222685/WEB-playground/assets/css/tambah_pengunjung.css

347 lines
6.4 KiB
CSS

/* Custom styles for add visitor page */
.login-left .logo {
font-size: 3rem;
}
.login-left .welcome-text {
font-size: 1.1rem;
}
.success-message {
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
color: #166534;
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 1rem;
border-left: 4px solid #22c55e;
font-size: 0.9rem;
display: none;
animation: slideDown 0.3s ease-out;
}
.error-message {
background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
color: #991b1b;
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 1rem;
border-left: 4px solid #ef4444;
font-size: 0.9rem;
display: none;
animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.back-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: #6B46C1;
text-decoration: none;
font-weight: 500;
margin-top: 1.5rem;
transition: all 0.3s ease;
font-size: 0.95rem;
}
.back-link:hover {
color: #553c9a;
transform: translateX(-3px);
}
.loading-spinner {
display: none;
width: 20px;
height: 20px;
border: 2px solid #ffffff;
border-top: 2px solid transparent;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 0.5rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.login-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none !important;
}
.form-input.error {
border-color: #dc2626;
background-color: #fef2f2;
}
.form-input.success {
border-color: #22c55e;
background-color: #f0fdf4;
}
.form-select {
width: 100%;
padding: 14px 16px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-size: 1rem;
background: #ffffff;
transition: all 0.3s ease;
appearance: none;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
background-position: right 12px center;
background-repeat: no-repeat;
background-size: 16px;
cursor: pointer;
}
.form-select:focus {
outline: none;
border-color: #6B46C1;
box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}
.form-select.error {
border-color: #dc2626;
background-color: #fef2f2;
}
.form-select.success {
border-color: #22c55e;
background-color: #f0fdf4;
}
.price-display {
text-align: center;
margin-top: 12px;
padding: 12px;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
border-radius: 8px;
font-weight: 600;
color: #1e293b;
border: 1px solid #cbd5e1;
}
/* RFID Scan Status Styles */
.scan-status {
margin-bottom: 1rem;
padding: 12px 16px;
border-radius: 8px;
text-align: center;
font-weight: 500;
display: none;
}
.scan-waiting {
background: linear-gradient(135deg, #fef3c7 0%, #fcd34d 100%);
color: #92400e;
border: 1px solid #f59e0b;
}
.scan-success {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
color: #065f46;
border: 1px solid #10b981;
}
.scan-error {
background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
color: #991b1b;
border: 1px solid #dc2626;
}
.scan-status i {
margin-right: 8px;
font-size: 1.1em;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.scan-waiting {
animation: pulse 2s infinite;
}
/* Modal Styles */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
}
.modal-content {
background: white;
padding: 2rem;
border-radius: 12px;
max-width: 500px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
text-align: center;
margin-bottom: 1.5rem;
}
.modal-header h3 {
color: #1f2937;
margin-bottom: 0.5rem;
font-size: 1.3rem;
}
.modal-header p {
color: #6b7280;
font-size: 0.95rem;
}
.current-user-info {
background: #f9fafb;
padding: 1rem;
border-radius: 8px;
margin-bottom: 1.5rem;
border-left: 4px solid #6B46C1;
}
.current-user-info p {
margin: 0.5rem 0;
font-size: 0.95rem;
}
.current-user-info strong {
color: #374151;
}
.status-info {
margin-top: 1rem;
padding: 0.75rem;
border-radius: 6px;
font-weight: 500;
text-align: center;
}
.text-green-600 {
color: #059669;
background: #ecfdf5;
}
.text-red-600 {
color: #dc2626;
background: #fef2f2;
}
.text-green-500 {
color: #10b981;
}
.text-red-500 {
color: #ef4444;
}
.modal-buttons {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 1.5rem;
}
.modal-btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
font-size: 0.95rem;
}
.modal-btn-primary {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
color: white;
}
.modal-btn-primary:hover {
background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
transform: translateY(-1px);
}
.modal-btn-secondary {
background: #f3f4f6;
color: #374151;
border: 1px solid #d1d5db;
}
.modal-btn-secondary:hover {
background: #e5e7eb;
transform: translateY(-1px);
}
.scan-info {
margin-top: 8px;
padding: 8px 12px;
background: #fef3c7;
border: 1px solid #f59e0b;
border-radius: 6px;
font-size: 0.85rem;
color: #92400e;
display: flex;
align-items: center;
gap: 0.5rem;
}
.scan-info i {
color: #d97706;
}
.form-input[readonly] {
background-color: #f9fafb;
color: #6b7280;
cursor: not-allowed;
}
.form-input[readonly]:focus {
box-shadow: none;
border-color: #d1d5db;
}
.text-green-500 {
color: #10b981; /* Example green for remaining time */
}
.text-red-500 {
color: #ef4444; /* Example red for expired time */
}