2025-09-16 21:05:04 +03:00

213 lines
3.8 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #c1c1c1;
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: #a8a8a8;
}
/* Custom animations */
@keyframes shimmer {
0% {
background-position: -200px 0;
}
100% {
background-position: calc(200px + 100%) 0;
}
}
.shimmer {
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
background-size: 200px 100%;
animation: shimmer 1.5s infinite;
}
/* Card hover effects */
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-2px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
/* Gradient backgrounds */
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.success-gradient {
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}
.warning-gradient {
background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.danger-gradient {
background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}
/* Loading animations */
.pulse-animation {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: .5;
}
}
/* Custom button styles */
.btn-primary {
@apply bg-primary-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-primary-700 transition-colors duration-200;
}
.btn-secondary {
@apply bg-gray-200 text-gray-800 px-4 py-2 rounded-lg font-medium hover:bg-gray-300 transition-colors duration-200;
}
.btn-success {
@apply bg-success-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-success-700 transition-colors duration-200;
}
.btn-danger {
@apply bg-danger-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-danger-700 transition-colors duration-200;
}
/* Form styles */
.form-input {
@apply w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors;
}
.form-label {
@apply block text-sm font-medium text-gray-700 mb-1;
}
.form-error {
@apply text-sm text-danger-600 mt-1;
}
/* Card styles */
.card {
@apply bg-white rounded-lg shadow-sm border;
}
.card-header {
@apply px-6 py-4 border-b border-gray-200;
}
.card-body {
@apply p-6;
}
.card-footer {
@apply px-6 py-4 border-t border-gray-200 bg-gray-50;
}
/* Badge styles */
.badge {
@apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}
.badge-primary {
@apply bg-primary-100 text-primary-800;
}
.badge-success {
@apply bg-success-100 text-success-800;
}
.badge-warning {
@apply bg-yellow-100 text-yellow-800;
}
.badge-danger {
@apply bg-danger-100 text-danger-800;
}
/* Progress bar */
.progress-bar {
@apply w-full bg-gray-200 rounded-full h-2;
}
.progress-fill {
@apply h-2 bg-primary-600 rounded-full transition-all duration-300;
}
/* Mobile optimizations */
@media (max-width: 768px) {
.mobile-padding {
@apply px-4;
}
.mobile-text {
@apply text-sm;
}
}
/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
.dark-mode {
@apply bg-gray-900 text-white;
}
}
/* LINE LIFF specific styles */
.liff-container {
min-height: 100vh;
padding-bottom: env(safe-area-inset-bottom);
}
/* Custom focus styles for accessibility */
.focus-visible:focus {
@apply outline-none ring-2 ring-primary-500 ring-offset-2;
}
/* Animations for state changes */
.fade-in {
animation: fadeIn 0.3s ease-in-out;
}
.slide-up {
animation: slideUp 0.3s ease-out;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes slideUp {
from {
transform: translateY(20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}