/* Global Styles for ชีพจร Pulse */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Noto Sans Thai', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-custom {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #ef4444 0%, #0ea5e9 100%);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Custom button styles */
.btn-primary {
    background-color: #ef4444;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #dc2626;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #0ea5e9;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #0284c7;
    transform: translateY(-1px);
}

/* Progress circle animations */
@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .responsive-text {
        font-size: 0.875rem;
    }
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.1), 0 2px 4px -1px rgba(239, 68, 68, 0.06);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}