:root {
--primary-color: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #818cf8;
--secondary-color: #8b5cf6;
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--info-color: #3b82f6;
--bg-primary: #ffffff;
--bg-secondary: #f9fafb;
--bg-tertiary: #f3f4f6;
--text-primary: #111827;
--text-secondary: #6b7280;
--text-tertiary: #9ca3af;
--border-color: #e5e7eb;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
--radius-sm: 4px;
--radius-md: 8px;
--radius-lg: 12px;
--radius-xl: 16px;
--transition: all 0.3s ease;
}
[data-theme="dark"] {
--bg-primary: #111827;
--bg-secondary: #1f2937;
--bg-tertiary: #374151;
--text-primary: #f9fafb;
--text-secondary: #d1d5db;
--text-tertiary: #9ca3af;
--border-color: #374151;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: var(--bg-secondary);
color: var(--text-primary);
line-height: 1.6;
transition: var(--transition);
}
/* Buttons */
.btn {
padding: 10px 20px;
border: none;
border-radius: var(--radius-md);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: var(--transition);
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-dark);
transform: translateY(-2px);
box-shadow: var(--shadow-md);
}
.btn-secondary {
background-color: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-secondary:hover {
background-color: var(--border-color);
}
.btn-block {
width: 100%;
justify-content: center;
}
/* Form Elements */
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
color: var(--text-primary);
font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
width: 100%;
padding: 12px;
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
font-size: 14px;
background-color: var(--bg-primary);
color: var(--text-primary);
transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.input-with-icon {
position: relative;
}
.input-with-icon i {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--text-tertiary);
}
.input-with-icon input {
padding-left: 40px;
}
.toggle-password {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
}
/* Modal */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
align-items: center;
justify-content: center;
}
.modal.active {
display: flex;
}
.modal-content {
background-color: var(--bg-primary);
border-radius: var(--radius-lg);
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
box-shadow: var(--shadow-xl);
animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: translateY(-50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-header {
padding: 20px;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
font-size: 20px;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
font-size: 20px;
color: var(--text-tertiary);
cursor: pointer;
padding: 5px;
}
.modal-close:hover {
color: var(--text-primary);
}
.modal-content form {
padding: 20px;
}
.modal-footer {
display: flex;
gap: 10px;
justify-content: flex-end;
padding: 20px;
}
/* Toast Notifications */
.toast-container {
position: fixed;
top: 20px;
right: 20px;
z-index: 2000;
display: flex;
flex-direction: column;
gap: 10px;
}
.toast {
background-color: var(--bg-primary);
padding: 16px 20px;
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
display: flex;
align-items: center;
gap: 12px;
min-width: 300px;
animation: toastSlideIn 0.3s ease;
}
@keyframes toastSlideIn {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.toast.success {
border-left: 4px solid var(--success-color);
}
.toast.error {
border-left: 4px solid var(--danger-color);
}
.toast.warning {
border-left: 4px solid var(--warning-color);
}
.toast.info {
border-left: 4px solid var(--info-color);
}
.toast i {
font-size: 20px;
}
.toast.success i {
color: var(--success-color);
}
.toast.error i {
color: var(--danger-color);
}
.toast.warning i {
color: var(--warning-color);
}
.toast.info i {
color: var(--info-color);
}
.toast-content {
flex: 1;
}
.toast-title {
font-weight: 600;
margin-bottom: 4px;
}
.toast-message {
font-size: 14px;
color: var(--text-secondary);
}
.toast-close {
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
padding: 5px;
}
/* Loading Overlay */
.loading-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 9999;
align-items: center;
justify-content: center;
}
.loading-overlay.active {
display: flex;
}
.spinner {
width: 50px;
height: 50px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Login Page */
.login-page {
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
}
.login-container {
display: flex;
height: 100vh;
}
.login-left {
flex: 1;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
display: flex;
align-items: center;
justify-content: center;
color: white;
padding: 40px;
}
.login-illustration {
text-align: center;
}
.login-illustration i {
font-size: 120px;
margin-bottom: 30px;
opacity: 0.9;
}
.login-illustration h1 {
font-size: 48px;
margin-bottom: 20px;
}
.login-illustration p {
font-size: 18px;
opacity: 0.9;
}
.login-right {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 40px;
background-color: var(--bg-primary);
}
.login-box {
width: 100%;
max-width: 400px;
}
.login-header {
margin-bottom: 30px;
}
.login-header h2 {
font-size: 32px;
margin-bottom: 10px;
}
.login-header p {
color: var(--text-secondary);
}
.form-options {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.checkbox {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
}
.checkbox input {
width: auto;
}
.forgot-password {
color: var(--primary-color);
text-decoration: none;
font-size: 14px;
}
.forgot-password:hover {
text-decoration: underline;
}
.login-footer {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
text-align: center;
font-size: 14px;
color: var(--text-secondary);
}
.login-footer p {
margin: 5px 0;
}
/* Utility Classes */
.text-center {
text-align: center;
}
.mt-1 {
margin-top: 8px;
}
.mt-2 {
margin-top: 16px;
}
.mt-3 {
margin-top: 24px;
}
.mt-4 {
margin-top: 32px;
}
.mb-1 {
margin-bottom: 8px;
}
.mb-2 {
margin-bottom: 16px;
}
.mb-3 {
margin-bottom: 24px;
}
.mb-4 {
margin-bottom: 32px;
}
.hidden {
display: none !important;
}
/* Print Styles */
@media print {
body * {
visibility: hidden;
}
#orderDetailsModal,
#orderDetailsModal * {
visibility: visible;
}
#orderDetailsModal {
position: absolute;
left: 0;
top: 0;
width: 100%;
background: white;
}
.modal-header button,
.modal-footer {
display: none !important;
}
.order-details-content {
max-height: none;
overflow: visible;
}
}