/**
 * Patient portal — plain CSS (works with or without Vite/Tailwind build).
 */

/* Sidebar nav */
.hms-patient-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.hms-patient-nav-link:hover {
    background: #f8fafc;
    color: #0f172a;
}

.hms-patient-nav-link.is-active {
    background: #ecfeff;
    color: #0e7490;
}

.hms-patient-nav-link svg {
    height: 1.25rem;
    width: 1.25rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.hms-patient-nav-link.is-active svg {
    opacity: 1;
}

/* Dashboard hero */
.hms-patient-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, #0891b2, #0284c7, #1d4ed8);
    padding: 1.5rem;
    color: #fff;
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.25);
}

@media (min-width: 640px) {
    .hms-patient-hero {
        padding: 2rem;
    }
}

/* Quick action cards */
.hms-patient-action {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #fff;
    padding: 1rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hms-patient-action:hover {
    border-color: #a5f3fc;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.hms-patient-action svg {
    height: 1.25rem;
    width: 1.25rem;
}

.hms-patient-stat {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Cyan / sky gradients used in patient UI */
.bg-gradient-to-br.from-cyan-600,
.from-cyan-600.via-sky-600.to-blue-700,
.hms-patient-hero.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #0891b2, #0284c7, #1d4ed8);
}

.from-cyan-500.to-blue-600,
.bg-gradient-to-r.from-cyan-500 {
    background: linear-gradient(to right, #06b6d4, #2563eb);
}

.from-amber-500.to-orange-500 {
    background: linear-gradient(to bottom right, #f59e0b, #f97316);
}

.from-emerald-500.to-teal-600 {
    background: linear-gradient(to bottom right, #10b981, #0d9488);
}

.from-indigo-500.to-violet-600 {
    background: linear-gradient(to bottom right, #6366f1, #7c3aed);
}

.from-violet-500.to-purple-600 {
    background: linear-gradient(to bottom right, #8b5cf6, #9333ea);
}

.from-slate-600.to-slate-800 {
    background: linear-gradient(to bottom right, #475569, #1e293b);
}

.text-cyan-600 { color: #0891b2; }
.text-cyan-700 { color: #0e7490; }
.text-cyan-100 { color: #cffafe; }
.text-cyan-50 { color: #ecfeff; }
.text-amber-600 { color: #d97706; }
.text-emerald-600 { color: #059669; }
.hover\:text-cyan-700:hover { color: #0e7490; }
.hover\:bg-cyan-50:hover { background: #ecfeff; }
.hover\:border-cyan-200:hover { border-color: #a5f3fc; }
.hover\:border-cyan-300:hover { border-color: #67e8f9; }
.bg-cyan-50 { background: #ecfeff; }
.bg-cyan-600 { background: #0891b2; }
.border-cyan-200 { border-color: #a5f3fc; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-slate-400 { color: #94a3b8; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.p-6 { padding: 1.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.h-12 { height: 3rem; }
.w-12 { width: 3rem; }
.h-14 { height: 3.5rem; }
.w-14 { width: 3.5rem; }
.h-40 { height: 10rem; }
.w-40 { width: 10rem; }
.h-28 { height: 7rem; }
.w-28 { width: 7rem; }
.leading-none { line-height: 1; }
.divide-y > * + * { border-top: 1px solid #f1f5f9; }
.divide-slate-100 > * + * { border-color: #f1f5f9; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.relative { position: relative; }
.absolute { position: absolute; }
.-right-8 { right: -2rem; }
.-top-8 { top: -2rem; }
.-left-4 { left: -1rem; }
.bottom-0 { bottom: 0; }
.blur-2xl { filter: blur(40px); }
.blur-xl { filter: blur(24px); }
.bg-white\/10 { background: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background: rgba(255, 255, 255, 0.2); }
.bg-cyan-300\/20 { background: rgba(103, 232, 249, 0.2); }
.ring-2 { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3); }
.ring-white\/30 { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-cyan-500\/25 { box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25); }
.shadow-cyan-900\/20 { box-shadow: 0 20px 40px rgba(22, 78, 99, 0.2); }
.tracking-widest { letter-spacing: 0.1em; }
.font-mono { font-family: ui-monospace, monospace; }
.text-center { text-align: center; }
.justify-between { justify-content: space-between; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-slate-100\/80 { background: rgba(241, 245, 249, 0.8); }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.group:hover .group-hover\:bg-cyan-50 { background: #ecfeff; }
.group:hover .group-hover\:text-cyan-700 { color: #0e7490; }
.transition-all { transition: all 0.15s; }
.transition-colors { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-transform { transition: transform 0.15s; }
.group-hover\:scale-105:hover { transform: scale(1.05); }

.hms-card-header.justify-between {
    justify-content: space-between;
}

.hms-card-body.pt-0 {
    padding-top: 0;
}

.hms-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-emerald-100 { background: #d1fae5; }
.text-emerald-800 { color: #065f46; }
.bg-amber-100 { background: #fef3c7; }
.text-amber-900 { color: #78350f; }
.bg-red-100 { background: #fee2e2; }
.text-red-800 { color: #991b1b; }
.bg-sky-100 { background: #e0f2fe; }
.text-sky-800 { color: #075985; }

@media (min-width: 640px) {
    .sm\:p-8 { padding: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:col-span-3 { grid-column: span 3 / span 3; }
    .sm\:block { display: block; }
}

@media (min-width: 1024px) {
    .lg\:p-8 { padding: 2rem; }
}
