uas-web-22412001/client/css/style.css

200 lines
3.6 KiB
CSS

/* Custom animations and styles */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
.fade-in {
animation: fadeIn 0.5s ease-out;
}
.slide-in {
animation: slideIn 0.3s ease-out;
}
/* Card hover effects */
.inventory-card {
transition: all 0.3s ease;
background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
border: 1px solid #27272a;
}
.inventory-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
border-color: #3f3f46;
}
/* Stock level indicators */
.stock-low {
background-color: #450a0a;
color: #fca5a5;
border: 1px solid #7f1d1d;
}
.stock-medium {
background-color: #451a03;
color: #fed7aa;
border: 1px solid #92400e;
}
.stock-high {
background-color: #052e16;
color: #bbf7d0;
border: 1px solid #166534;
}
/* Button animations */
.btn-primary {
transition: all 0.2s ease;
background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.btn-primary:hover {
background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
transform: translateY(-1px);
}
.btn-danger {
transition: all 0.2s ease;
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.btn-danger:hover {
background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
transform: translateY(-1px);
}
/* Form focus states */
.form-input:focus {
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* Modal animations */
.modal-overlay {
backdrop-filter: blur(4px);
transition: opacity 0.3s ease;
}
.modal-content {
transition: transform 0.3s ease;
}
/* Loading spinner */
.loading-spinner {
border-top-color: #3b82f6;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Price formatting */
.price-display {
font-feature-settings: 'tnum';
font-variant-numeric: tabular-nums;
}
/* Responsive design improvements */
@media (max-width: 768px) {
.inventory-card {
margin-bottom: 1rem;
}
.form-grid {
grid-template-columns: 1fr;
}
}
/* Status badges */
.status-badge {
display: inline-flex;
align-items: center;
padding: 0.25rem 0.75rem;
border-radius: 9999px;
font-size: 0.75rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.025em;
}
/* Quantity controls */
.qty-controls {
display: flex;
align-items: center;
gap: 0.5rem;
}
.qty-btn {
width: 2rem;
height: 2rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
transition: all 0.2s ease;
}
.qty-btn:hover {
transform: scale(1.1);
}
/* Success and error messages */
.alert {
border-radius: 0.5rem;
padding: 1rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.alert-success {
background-color: #052e16;
border-color: #166534;
color: #bbf7d0;
}
.alert-error {
background-color: #450a0a;
border-color: #7f1d1d;
color: #fca5a5;
}
/* Card content spacing */
.card-content {
padding: 1.5rem;
}
.card-header {
border-bottom: 1px solid #374151;
padding-bottom: 0.75rem;
margin-bottom: 1rem;
}
.card-footer {
border-top: 1px solid #374151;
padding-top: 0.75rem;
margin-top: 1rem;
}