/*
Theme Name:        Hello Doctor Nepal
Theme URI:         https://hamrodoctor.online
Author:            Hamro Doctor Team
Author URI:        https://hamrodoctor.online
Description:       A production-ready native WordPress theme for Hamro Doctor Online — Nepal's first NMC-verified teleconsultation platform. Includes patient, doctor, and admin portals with full appointment booking, digital prescriptions, and consultation room simulation.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       hello-doctor-nepal
Tags:              healthcare, telemedicine, nepal, medical, custom-background, custom-logo, full-width-template, translation-ready
*/

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; scroll-behavior: smooth; }

body {
	font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background-color: #F0F5F9;
	color: #1e293b;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
p { line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* =====================================================
   PORTAL VIEWPORT SYSTEM
   ===================================================== */
#hamro-doctor-app { display: flex; flex-direction: column; min-height: 100vh; }

.portal-viewport-section { display: flex; flex-direction: column; flex: 1; }
.portal-viewport-section.hidden { display: none !important; }

/* =====================================================
   HIDDEN UTILITY
   ===================================================== */
.hidden { display: none !important; }

/* =====================================================
   TAB PANELS
   ===================================================== */
.visitor-tab-panel,
.patient-tab-panel,
.doctor-tab-panel,
.admin-tab-panel { display: none; }

.visitor-tab-panel:not(.hidden),
.patient-tab-panel:not(.hidden),
.doctor-tab-panel:not(.hidden),
.admin-tab-panel:not(.hidden) { display: block; }

/* =====================================================
   SCROLLBAR STYLING
   ===================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}
@keyframes ping {
	75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
.animate-ping   { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.animate-spin   { animation: spin 1s linear infinite; }
.animate-fadein { animation: fadeIn 0.3s ease-out forwards; }

/* =====================================================
   LUCIDE ICON DEFAULTS
   ===================================================== */
[data-lucide] { display: inline-block; vertical-align: middle; }

/* =====================================================
   FORM FOCUS RING
   ===================================================== */
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* =====================================================
   TAILWIND-LIKE UTILITIES USED IN PHP TEMPLATES
   (core subset — keeps theme self-contained)
   ===================================================== */

/* Layout */
.flex           { display: flex; }
.flex-1         { flex: 1 1 0%; }
.flex-col       { flex-direction: column; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end    { justify-content: flex-end; }
.shrink-0       { flex-shrink: 0; }
.grid           { display: grid; }
.relative       { position: relative; }
.absolute       { position: absolute; }
.fixed          { position: fixed; }
.sticky         { position: sticky; }
.inset-0        { inset: 0; }
.overflow-hidden{ overflow: hidden; }
.overflow-y-auto{ overflow-y: auto; }
.overflow-x-auto{ overflow-x: auto; }
.min-w-0        { min-width: 0; }
.w-full         { width: 100%; }
.h-full         { height: 100%; }
.min-h-screen   { min-height: 100vh; }
.max-w-7xl      { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-2xl      { max-width: 42rem; }
.max-w-xl       { max-width: 36rem; }
.max-w-lg       { max-width: 32rem; }
.max-w-md       { max-width: 28rem; }
.max-w-sm       { max-width: 24rem; }
.mx-auto        { margin-left: auto; margin-right: auto; }
.truncate       { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2   { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.z-50           { z-index: 50; }
.z-40           { z-index: 40; }

/* Spacing */
.p-1  { padding: 0.25rem; }
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12{ padding-top: 3rem; padding-bottom: 3rem; }
.py-16{ padding-top: 4rem; padding-bottom: 4rem; }
.py-24{ padding-top: 6rem; padding-bottom: 6rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12{ margin-bottom: 3rem; }
.gap-1{ gap: 0.25rem; }
.gap-2{ gap: 0.5rem; }
.gap-3{ gap: 0.75rem; }
.gap-4{ gap: 1rem; }
.gap-6{ gap: 1.5rem; }
.gap-7{ gap: 1.75rem; }
.gap-8{ gap: 2rem; }
.gap-12{gap: 3rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* Typography */
.text-xs    { font-size: 0.75rem; line-height: 1rem; }
.text-sm    { font-size: 0.875rem; line-height: 1.25rem; }
.text-base  { font-size: 1rem; line-height: 1.5rem; }
.text-lg    { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl    { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl   { font-size: 1.5rem; line-height: 2rem; }
.text-3xl   { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl   { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl   { font-size: 3rem; line-height: 1; }
.font-medium{ font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold  { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-mono  { font-family: ui-monospace, 'Cascadia Code', monospace; }
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }
.uppercase  { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.leading-none   { line-height: 1; }
.leading-tight  { line-height: 1.25; }
.leading-snug   { line-height: 1.375; }
.leading-relaxed{ line-height: 1.625; }
.text-center{ text-align: center; }
.text-left  { text-align: left; }
.text-right { text-align: right; }
.italic     { font-style: italic; }

/* Colors */
.text-white   { color: #fff; }
.text-slate-400{ color: #94a3b8; }
.text-slate-500{ color: #64748b; }
.text-slate-600{ color: #475569; }
.text-slate-700{ color: #334155; }
.text-slate-800{ color: #1e293b; }
.text-slate-900{ color: #0f172a; }
.text-slate-300{ color: #cbd5e1; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-blue-400 { color: #60a5fa; }
.text-emerald-600{ color: #059669; }
.text-emerald-700{ color: #047857; }
.text-emerald-400{ color: #34d399; }
.text-amber-500  { color: #f59e0b; }
.text-red-500    { color: #ef4444; }
.text-green-600  { color: #16a34a; }
.text-purple-700 { color: #7e22ce; }

.bg-white       { background-color: #fff; }
.bg-slate-50    { background-color: #f8fafc; }
.bg-slate-100   { background-color: #f1f5f9; }
.bg-slate-800   { background-color: #1e293b; }
.bg-slate-900   { background-color: #0f172a; }
.bg-blue-600    { background-color: #2563eb; }
.bg-emerald-600 { background-color: #059669; }
.bg-red-600     { background-color: #dc2626; }
.bg-amber-50    { background-color: #fffbeb; }

/* Borders */
.border       { border-width: 1px; border-style: solid; }
.border-0     { border: none; }
.border-b     { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t     { border-top-width: 1px; border-top-style: solid; }
.border-slate-100{ border-color: #f1f5f9; }
.border-slate-200{ border-color: #e2e8f0; }
.border-slate-700{ border-color: #334155; }
.border-blue-100 { border-color: #dbeafe; }

/* Border radius */
.rounded     { border-radius: 0.25rem; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full{ border-radius: 9999px; }

/* Shadows */
.shadow      { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.shadow-sm   { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md   { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); }
.shadow-lg   { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); }
.shadow-xl   { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); }
.shadow-2xl  { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }

/* Transitions */
.transition  { transition: all 0.15s ease; }
.duration-500{ transition-duration: 500ms; }
.duration-700{ transition-duration: 700ms; }

/* Backdrop */
.backdrop-blur    { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Object fit */
.object-cover    { object-fit: cover; }
.aspect-video    { aspect-ratio: 16/9; }
.aspect-square   { aspect-ratio: 1/1; }

/* Grid cols */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.col-span-2  { grid-column: span 2 / span 2; }
.col-span-3  { grid-column: span 3 / span 3; }

/* Width / Height helpers */
.w-2  { width: 0.5rem; }
.w-3  { width: 0.75rem; }
.w-4  { width: 1rem; }
.w-5  { width: 1.25rem; }
.w-8  { width: 2rem; }
.w-9  { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.h-2  { height: 0.5rem; }
.h-3  { height: 0.75rem; }
.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-8  { height: 2rem; }
.h-9  { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.max-h-64 { max-height: 16rem; }

/* Display */
.block  { display: block; }
.inline-block { display: inline-block; }
.inline-flex  { display: inline-flex; }
.hidden { display: none !important; }

/* Responsive helpers */
@media (min-width: 640px) {
	.sm\:flex-row { flex-direction: row; }
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sm\:flex-row    { flex-direction: row; }
}
@media (min-width: 768px) {
	.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.md\:flex-row    { flex-direction: row; }
	.md\:flex        { display: flex; }
	.md\:hidden      { display: none; }
	.md\:text-lg     { font-size: 1.125rem; line-height: 1.75rem; }
	.md\:text-base   { font-size: 1rem; }
	.md\:text-3xl    { font-size: 1.875rem; }
	.md\:text-5xl    { font-size: 3rem; }
	.md\:px-8        { padding-left: 2rem; padding-right: 2rem; }
	.md\:py-24       { padding-top: 6rem; padding-bottom: 6rem; }
	.md\:text-sm     { font-size: 0.875rem; }
	.md\:p-8         { padding: 2rem; }
}
@media (min-width: 1024px) {
	.lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:flex-row    { flex-direction: row; }
	.lg\:flex        { display: flex; }
	.lg\:hidden      { display: none; }
	.lg\:aspect-square { aspect-ratio: 1/1; }
	.lg\:w-72        { width: 18rem; }
}

/* =====================================================
   BLOG TYPOGRAPHY & WORDPRESS CONTENT STYLES
   ===================================================== */
.entry-content h2 { font-size: 1.5rem; font-weight: 850; color: #0f172a; margin-top: 2rem; margin-bottom: 1rem; }
.entry-content h3 { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.entry-content h4 { font-size: 1.1rem; font-weight: 750; color: #0f172a; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.entry-content p { font-size: 0.925rem; line-height: 1.7; color: #475569; margin-bottom: 1.25rem; }
.entry-content ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content li { margin-bottom: 0.5rem; color: #475569; font-size: 0.925rem; }
.entry-content blockquote { border-left: 4px solid #2563eb; padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: #1e293b; background: #f8fafc; padding-top: 0.75rem; padding-bottom: 0.75rem; border-radius: 0 0.5rem 0.5rem 0; }
.entry-content a { color: #2563eb; text-decoration: underline; transition: color 0.15s; }
.entry-content a:hover { color: #1d4ed8; }
.entry-content strong { color: #0f172a; font-weight: 700; }
