/* Custom styles for MEDTA MALL 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(0, 188, 161, 0.1);
    border-color: #00BCA1;
}

/* 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, #00BCA1 0%, #009688 50%, #00796B 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(0, 188, 161, 0.3);
    transform: translateY(-1px);
}

/* Logo pulse animation */
@keyframes logoPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 188, 161, 0.2);
    }

    50% {
        box-shadow: 0 6px 20px rgba(0, 188, 161, 0.3);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 188, 161, 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: #00BCA1;
}

/* Hero section styling */
.bg-primary {
    background: linear-gradient(135deg, #00BCA1, #009688) !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: #00BCA1;
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 161, 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;
}

/* MED
TA MALL Brand Colors */
:root {
    --brand-primary: #00BCA1;
    --brand-primary-dark: #009688;
    --brand-primary-light: #4DD0E1;
    --brand-secondary: #00796B;
}

/* Override Tailwind colors with brand colors */
.text-blue-600 {
    color: var(--brand-primary) !important;
}

.text-blue-700 {
    color: var(--brand-primary-dark) !important;
}

.text-blue-800 {
    color: var(--brand-secondary) !important;
}

.bg-blue-600 {
    background-color: var(--brand-primary) !important;
}

.bg-blue-700 {
    background-color: var(--brand-primary-dark) !important;
}

.bg-blue-800 {
    background-color: var(--brand-secondary) !important;
}

.border-blue-600 {
    border-color: var(--brand-primary) !important;
}

.hover\:text-blue-600:hover {
    color: var(--brand-primary) !important;
}

.hover\:bg-blue-600:hover {
    background-color: var(--brand-primary) !important;
}

.hover\:bg-blue-700:hover {
    background-color: var(--brand-primary-dark) !important;
}

.hover\:border-blue-600:hover {
    border-color: var(--brand-primary) !important;
}

/* Focus states */
.focus\:ring-blue-500:focus {
    --tw-ring-color: rgba(0, 188, 161, 0.5) !important;
}

.focus\:border-blue-500:focus {
    border-color: var(--brand-primary) !important;
}

/* Gradient overrides */
.from-blue-600 {
    --tw-gradient-from: var(--brand-primary) !important;
}

.to-blue-800 {
    --tw-gradient-to: var(--brand-secondary) !important;
}

.via-blue-600 {
    --tw-gradient-via: var(--brand-primary) !important;
}

/* Button specific overrides */
.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
}

/* Link colors */
a.text-blue-600 {
    color: var(--brand-primary) !important;
}

a.text-blue-600:hover {
    color: var(--brand-primary-dark) !important;
}

/* Custom MEDTA MALL specific styles */
.medta-brand-bg {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
}

.medta-brand-text {
    color: var(--brand-primary);
}

.medta-brand-border {
    border-color: var(--brand-primary);
}

.medta-hover:hover {
    color: var(--brand-primary);
    transition: color 0.3s ease;
}

/* Admin panel brand colors */
.admin-brand {
    background-color: var(--brand-primary) !important;
}

.admin-brand:hover {
    background-color: var(--brand-primary-dark) !important;
}

/* Mobile responsive brand colors */
@media (max-width: 768px) {
    .mobile-brand-bg {
        background: linear-gradient(to right, var(--brand-primary), var(--brand-primary-dark));
    }
}

/*
 MEDTA MALL Logo Styles */
.medta-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.medta-logo-small {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.medta-logo-large {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* Logo container adjustments for SVG */
.logo-container img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-container:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transform: scale(1.05);
}

/* Admin logo white filter */
.admin-logo-white {
    filter: brightness(0) invert(1);
}

/* Mobile logo adjustments */
@media (max-width: 640px) {
    .medta-logo {
        height: 32px;
    }

    .medta-logo-large {
        height: 48px;
    }
}

/* Logo background for better visibility */
.logo-bg-white {
    background: white;
    border-radius: 8px;
    padding: 4px;
    border: 2px solid #00BCA1;
}

.logo-bg-transparent {
    background: transparent;
    padding: 4px;
}

/* SVG logo color adjustments */
.medta-logo svg {
    width: 100%;
    height: 100%;
}

.medta-logo svg .cls-1 {
    fill: #00BCA1;
}

/* Hover effects for logo */
.logo-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Na
vigation Logo Specific Styles */
.nav-logo-container {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 8px 12px;
}

.nav-logo-container img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-logo-container:hover img {
    transform: scale(1.05);
}

/* Mobile navigation logo adjustments */
@media (max-width: 768px) {
    .nav-logo-container {
        padding: 6px 10px;
    }

    .nav-logo-container img {
        height: 32px;
    }
}

/* Logo only navigation - no text */
.logo-only-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Adjust navigation spacing when logo only */
.nav-with-logo-only .flex-1 {
    margin-left: 2rem;
}

@media (max-width: 1024px) {
    .nav-with-logo-only .flex-1 {
        margin-left: 1rem;
    }
}

/* Fix
 for Navigation Logo Display */
.nav-logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    min-width: 80px !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.nav-logo-container img {
    height: 40px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
    max-width: 100% !important;
}

/* Mobile Navigation Improvements */
.mobile-nav-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Mobile menu button styles */
.mobile-menu-btn {
    background: white;
    border: 2px solid #00BCA1;
    border-radius: 10px;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 188, 161, 0.1);
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: #f0fdfa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 188, 161, 0.2);
}

.mobile-menu-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 188, 161, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .nav-with-logo-only {
        padding: 0 1rem;
    }

    .logo-only-nav {
        flex: 0 0 auto;
    }

    .mobile-menu-btn {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .nav-with-logo-only {
        padding: 0 0.5rem;
    }

    .mobile-menu-btn {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-menu-btn i {
        font-size: 1.5rem !important;
    }
}

/* Ensure proper spacing on mobile */
.nav-mobile-spacing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Animation for mobile menu button */
.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .mobile-menu-btn i {
        font-size: 1.75rem !important;
        font-weight: 600;
    }
}

/* Extra large mobile screens */
@media (min-width: 641px) and (max-width: 1023px) {
    .mobile-menu-btn i {
        font-size: 2rem !important;
    }
}

/* E
nhanced Mobile Menu Icon */
.mobile-menu-btn i.fa-bars {
    font-weight: 900 !important;
    color: #00BCA1 !important;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover i.fa-bars {
    color: #009688 !important;
    transform: scale(1.1);
}

.mobile-menu-btn.active i.fa-bars {
    transform: rotate(90deg) scale(1.1);
}

/* Make sure icon is always visible */
.mobile-menu-btn i {
    display: block !important;
    line-height: 1 !important;
}

/* Improve button contrast */
.mobile-menu-btn {
    background: transparent !important;
    border: none !important;
}

.mobile-menu-btn:hover {
    background: transparent !important;
}

/* Ensure proper sizing on all devices */
.mobile-menu-btn {
    width: auto !important;
    height: auto !important;
}

/* Brand
 Color Overrides */
.text-blue-600 {
    color: #00BCA1 !important;
}

.text-blue-800 {
    color: #009688 !important;
}

.bg-blue-600 {
    background-color: #00BCA1 !important;
}

.bg-blue-700 {
    background-color: #009688 !important;
}

.bg-blue-50 {
    background-color: #f0fdfa !important;
}

.border-blue-500 {
    border-color: #00BCA1 !important;
}

.border-blue-100 {
    border-color: #ccfbf1 !important;
}

.hover\:bg-blue-500:hover {
    background-color: #00BCA1 !important;
}

.hover\:bg-blue-700:hover {
    background-color: #009688 !important;
}

.hover\:text-blue-600:hover {
    color: #00BCA1 !important;
}

.hover\:text-blue-800:hover {
    color: #009688 !important;
}

.hover\:border-blue-500:hover {
    border-color: #00BCA1 !important;
}

.hover\:bg-blue-50:hover {
    background-color: #f0fdfa !important;
}

/* Radio buttons and checkboxes */
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #00BCA1 !important;
    border-color: #00BCA1 !important;
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
    --tw-ring-color: #00BCA1 !important;
    border-color: #00BCA1 !important;
    box-shadow: 0 0 0 3px rgba(0, 188, 161, 0.1) !important;
}

/* Focus states */
.focus\:ring-blue-500:focus {
    --tw-ring-color: #00BCA1 !important;
}

.focus\:border-blue-500:focus {
    border-color: #00BCA1 !important;
}

/* Clinic cards brand colors */
.clinic-card {
    transition: all 0.3s ease;
}

.clinic-card:hover {
    border-color: #00BCA1 !important;
    box-shadow: 0 10px 25px rgba(0, 188, 161, 0.1) !important;
}

/* Gallery hover effects */
.group-hover-icon:hover {
    color: #00BCA1 !important;
}

.group-hover-text:hover {
    color: #00BCA1 !important;
}

/* Pagination */
.pagination .active {
    background-color: #00BCA1 !important;
    border-color: #00BCA1 !important;
}

.pagination a:hover {
    background-color: #f0fdfa !important;
    border-color: #00BCA1 !important;
    color: #00BCA1 !important;
}