/* Custom Tailwind utility classes for QR-Info-Portal
   These replace the tailwind.config extensions that only work with the JIT CDN compiler.
   Colors: thai-turquoise, thai-coral, thai-gold, thai-sand
   Fonts: thai (Sarabun), thai-display (Kanit), sarabun
*/

/* === Custom Colors === */

/* Thai Turquoise (#00B2A9 / #40E0D0 / #14B8A6) — using #14B8A6 as primary */
.bg-thai-turquoise { background-color: #14B8A6; }
.bg-thai-turquoise-dark { background-color: #0d9488; }
.text-thai-turquoise { color: #14B8A6; }
.border-thai-turquoise { border-color: #14B8A6; }
.ring-thai-turquoise { --tw-ring-color: #14B8A6; }
.focus\:ring-thai-turquoise:focus { --tw-ring-color: #14B8A6; }
.focus\:border-thai-turquoise:focus { border-color: #14B8A6; }
.hover\:bg-thai-turquoise:hover { background-color: #14B8A6; }
.hover\:text-thai-turquoise:hover { color: #14B8A6; }

/* Thai Coral (#FF6B6B / #FF7F50) */
.bg-thai-coral { background-color: #FF6B6B; }
.text-thai-coral { color: #FF6B6B; }
.border-thai-coral { border-color: #FF6B6B; }

/* Thai Gold (#FFD700) */
.bg-thai-gold { background-color: #FFD700; }
.text-thai-gold { color: #FFD700; }

/* Thai Sand (#FFF9F0) */
.bg-thai-sand { background-color: #FFF9F0; }

/* === Custom Font Sizes (Thai readability) === */
.text-thai-xs { font-size: 0.875rem; line-height: 1.5; }
.text-thai-sm { font-size: 1rem; line-height: 1.75; }
.text-thai-base { font-size: 1.125rem; line-height: 1.75; }
.text-thai-lg { font-size: 1.25rem; line-height: 1.75; }
.text-thai-xl { font-size: 1.5rem; line-height: 1.5; }
.text-thai-2xl { font-size: 2rem; line-height: 1.25; }
.text-thai-3xl { font-size: 2.5rem; line-height: 1.25; }
.text-thai-4xl { font-size: 3rem; line-height: 1.25; }

/* === Custom Font Families === */
.font-thai { font-family: 'Sarabun', sans-serif; }
.font-thai-display { font-family: 'Kanit', sans-serif; }
.font-sarabun { font-family: 'Sarabun', sans-serif; }

/* === Medical/Kiosk Colors === */
.bg-medical-green { background-color: #00A86B; }
.text-medical-green { color: #00A86B; }
.border-medical-green { border-color: #00A86B; }
.bg-medical-blue { background-color: #0056B3; }
.border-medical-blue { border-color: #0056B3; }
.bg-medical-primary { background-color: #0284C7; }
.text-medical-primary { color: #0284C7; }
.border-medical-primary { border-color: #0284C7; }
.bg-medical-secondary { background-color: #059669; }
.text-medical-secondary { color: #059669; }
.border-medical-secondary { border-color: #059669; }

/* === Kiosk Animations === */
@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
.animate-slide-in { animation: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-slide-out { animation: slideOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.animate-fade-in { animation: fadeIn 1s ease-out; }

/* === Header & Navigation (base.html) === */
.header-gradient {
    background: linear-gradient(135deg, #0D7377 0%, #14B8A6 50%, #0ea5a0 100%);
    color: white;
}
.nav-medical {
    background: white;
    border-bottom: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav-item-medical {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-family: 'Sarabun', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-item-medical:hover {
    color: #0D7377;
    background-color: #f0fdfa;
    border-bottom-color: #99f6e4;
}
.nav-item-medical.active {
    color: #0D7377;
    font-weight: 600;
    border-bottom-color: #14B8A6;
}
.nav-item-booking {
    color: #0D7377;
    font-weight: 600;
}

/* === Admin-specific styles (replaces @apply directives) === */
.nav-active {
    border-bottom: 2px solid #14B8A6;
    color: #14B8A6;
}
.nav-item {
    padding: 1rem 0.5rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.nav-item:hover {
    color: #374151;
    background-color: #f9fafb;
}
.admin-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}
.admin-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}
.admin-form .form-group { margin-bottom: 1.5rem; }
.admin-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #14B8A6;
    border-color: #14B8A6;
}
