/* Custom styles for CNW Clinic Review System with Tailwind CSS */

/* Thai Font Loading */
@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

/* Base styles */
* {
    font-family: 'Sarabun', 'Prompt', sans-serif;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Custom hover effects */
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Custom shadows */
.shadow-custom {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom button styles */
.btn-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Rating stars */
.rating-stars {
    color: #fbbf24;
}

.rating-stars-empty {
    color: #d1d5db;
}

/* Custom focus styles */
.focus-custom:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-responsive-lg {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* Custom utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
}

/* Logo styles */
.logo-container {
    transition: all 0.3s ease;
}

.logo-container:hover {
    opacity: 0.95;
    transform: scale(1.05);
}

.logo-image {
    transition: all 0.3s ease;
    filter: brightness(1) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-image:hover {
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Logo background gradient effect */
.logo-bg-brand {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.logo-bg-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-bg-brand:hover::before {
    opacity: 1;
}

.logo-bg-brand:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Logo pulse animation */
@keyframes logoPulse {
    0% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    }
}

.logo-bg-brand {
    animation: logoPulse 3s ease-in-out infinite;
}

/* Logo responsive sizing */
@media (max-width: 640px) {
    .logo-mobile {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.25rem;
    }
    
    .logo-mobile img {
        width: 2rem;
        height: 2rem;
    }
    
    .logo-text-mobile {
        font-size: 0.875rem;
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .dark-mode-text {
        color: #e5e7eb;
    }
    
    .dark-mode-bg {
        background-color: #1f2937;
    }
}

/* General styles */
body {
    line-height: 1.6;
}

/* Hover effects */
.hover-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

/* Hero section styling */
.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

/* Card enhancements */
.card {
    border: none;
    transition: all 0.3s ease;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Star rating styles */
.text-warning {
    color: #ffc107 !important;
}

/* Navbar enhancements */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Footer styles */
footer {
    margin-top: auto;
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
    }
}

/* Form styling */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 10px;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom background for sections */
.bg-light-custom {
    background-color: #f8f9fa !important;
    border-radius: 15px;
}

/* Icon styling */
.fas, .far {
    margin-right: 0.5rem;
} 