/* Agentic AI Claims Dashboard Design System */
/* Exact replica of the React version in plain CSS */

/* CSS Variables (Exact match to Tailwind config) */
:root {
    /* Core AI-Medical Theme */
    --background: 215 25% 97%;
    --foreground: 215 25% 15%;

    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;

    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;

    /* AI Blue Primary */
    --primary: 217 91% 60%;
    --primary-foreground: 0 0% 100%;
    --primary-glow: 217 91% 70%;

    /* Medical Teal Secondary */
    --secondary: 174 100% 40%;
    --secondary-foreground: 0 0% 100%;
    --secondary-glow: 174 100% 50%;

    /* Subtle Grays */
    --muted: 215 15% 95%;
    --muted-foreground: 215 15% 45%;

    --accent: 174 100% 96%;
    --accent-foreground: 174 100% 25%;

    /* Status Colors */
    --success: 142 76% 36%;
    --success-foreground: 0 0% 100%;
    --warning: 38 92% 50%;
    --warning-foreground: 0 0% 100%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    /* Borders & Inputs */
    --border: 215 15% 88%;
    --input: 215 15% 88%;
    --ring: 217 91% 60%;

    /* AI Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(217 91% 60%), hsl(174 100% 40%));
    --gradient-secondary: linear-gradient(135deg, hsl(174 100% 40%), hsl(217 91% 60%));
    --gradient-subtle: linear-gradient(180deg, hsl(215 25% 99%), hsl(215 15% 95%));
    --gradient-glow: linear-gradient(135deg, hsl(217 91% 70% / 0.8), hsl(174 100% 50% / 0.8));

    /* Medical Dashboard Shadows */
    --shadow-soft: 0 2px 8px hsl(215 25% 15% / 0.08);
    --shadow-medium: 0 4px 16px hsl(215 25% 15% / 0.12);
    --shadow-strong: 0 8px 32px hsl(215 25% 15% / 0.16);
    --shadow-glow: 0 0 24px hsl(217 91% 60% / 0.3);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Border Radius */
    --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gradient-subtle);
    color: hsl(var(--foreground));
    line-height: 1.5;
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-20 { top: 5rem; }
.top-40 { top: 10rem; }
.bottom-20 { bottom: 5rem; }
.left-10 { left: 2.5rem; }
.right-20 { right: 5rem; }
.left-1\/4 { left: 25%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-top-1 { top: -0.25rem; }
.-right-1 { right: -0.25rem; }
.top-1\/2 { top: 50%; }
.left-3 { left: 0.75rem; }
.right-3 { right: 0.75rem; }

/* Flexbox and Grid Utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.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)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive Grid */
@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Sizing */
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-40 { width: 10rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.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; }
.pl-10 { padding-left: 2.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-2 { padding-top: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-3 { margin-left: 0.75rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-12 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* Colors with opacity support */
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-success { color: hsl(var(--success)); }
.text-warning { color: hsl(var(--warning)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-foreground-90 { color: hsl(var(--foreground) / 0.9); }
.text-primary\/60 { color: hsl(var(--primary) / 0.6); }
.text-success\/60 { color: hsl(var(--success) / 0.6); }
.text-secondary\/60 { color: hsl(var(--secondary) / 0.6); }
.text-warning\/60 { color: hsl(var(--warning) / 0.6); }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-400 { color: #9ca3af; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-400 { color: #4ade80; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-teal-400 { color: #2dd4bf; }
.text-orange-400 { color: #fb923c; }
.text-orange-500 { color: #f97316; }
.text-orange-600 { color: #ea580c; }

/* Backgrounds with proper gradient support */
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-success { background-color: hsl(var(--success)); }
.bg-warning { background-color: hsl(var(--warning)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-gradient-glow { background: var(--gradient-glow); }
.bg-gradient-primary { background: var(--gradient-primary); }
.bg-primary-20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary-20 { background-color: hsl(var(--secondary) / 0.2); }
.bg-primary-glow-20 { background-color: hsl(var(--primary-glow) / 0.2); }
.bg-card-50 { background-color: hsl(var(--card) / 0.5); }
.bg-muted-30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted-50 { background-color: hsl(var(--muted) / 0.5); }

/* Professional Clinical Hero Background */
.bg-hero-clinical {
    background: linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 40%, #F3F7FB 100%);
}

/* Subtle grid overlay for depth (no harsh animation) */
.hero-grid-overlay {
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0.0) 60%),
        radial-gradient(circle at 80% 30%, rgba(45,212,191,0.10) 0%, rgba(45,212,191,0.0) 55%),
        linear-gradient(0deg, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
    opacity: 0.8;
}

/* Subtle medical illustration in hero */
.hero-illustration {
    position: absolute;
    right: 4rem;
    bottom: 2rem;
    width: 320px;
    height: 320px;
    opacity: 0.7;
    filter: drop-shadow(0 10px 25px rgba(16,24,40,0.08));
}
.hero-illustration svg { width: 100%; height: 100%; }

/* Trust badges */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: #0F172A;
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(59,130,246,0.25);
}

/* Real-time Activity Enhancements */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Activity Status Colors */
.border-blue-500 { border-color: #3B82F6; }
.border-green-500 { border-color: #10B981; }
.border-green-600 { border-color: #059669; }
.border-yellow-500 { border-color: #F59E0B; }
.border-purple-500 { border-color: #8B5CF6; }
.border-red-500 { border-color: #EF4444; }
.border-gray-500 { border-color: #6B7280; }

.bg-blue-500 { background-color: #3B82F6; }
.bg-green-500 { background-color: #10B981; }
.bg-green-600 { background-color: #059669; }
.bg-yellow-500 { background-color: #F59E0B; }
.bg-purple-500 { background-color: #8B5CF6; }
.bg-red-500 { background-color: #EF4444; }
.bg-gray-500 { background-color: #6B7280; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }

/* Removed duplicate :root token overrides that broke hsl(var(--primary)) */

/* Proper gradient backgrounds for cards */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-primary\/5 { --tw-gradient-from: hsl(var(--primary) / 0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsl(var(--primary) / 0)); }
.to-primary\/10 { --tw-gradient-to: hsl(var(--primary) / 0.1); }
.from-success\/5 { --tw-gradient-from: hsl(var(--success) / 0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsl(var(--success) / 0)); }
.to-success\/10 { --tw-gradient-to: hsl(var(--success) / 0.1); }
.from-secondary\/5 { --tw-gradient-from: hsl(var(--secondary) / 0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsl(var(--secondary) / 0)); }
.to-secondary\/10 { --tw-gradient-to: hsl(var(--secondary) / 0.1); }
.from-warning\/5 { --tw-gradient-from: hsl(var(--warning) / 0.05); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, hsl(var(--warning) / 0)); }
.to-warning\/10 { --tw-gradient-to: hsl(var(--warning) / 0.1); }

.bg-destructive-5 { background-color: hsl(var(--destructive) / 0.05); }
.bg-white { background-color: #ffffff; }

/* Metric Card Background Colors */
.bg-blue-light { background-color: #EAF5FF; }
.bg-green-light { background-color: #EDF7ED; }
.bg-gray-light { background-color: #F8F9FA; }
.bg-orange-light { background-color: #FFF7EA; }

/* Background opacity modifiers */
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }

/* Metric Card Styling */
.metrics-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
}

.metrics-container .metric-card {
    flex: 1;
    min-width: 0;
}

.metric-card {
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

/* Borders */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-b { border-bottom-width: 1px; }
.border-muted { border-color: hsl(var(--border)); }
.border-destructive-20 { border-color: hsl(var(--destructive) / 0.2); }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

/* Effects */
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.blur-xl { filter: blur(24px); }
.blur-lg { filter: blur(16px); }
.blur-2xl { filter: blur(40px); }
.opacity-20 { opacity: 0.2; }
.overflow-hidden { overflow: hidden; }
.transform { transform: translateZ(0); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.transition-all { transition: var(--transition-smooth); }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Hover Effects and Transitions */
.hover-shadow-glow:hover { box-shadow: var(--shadow-glow); }
.hover-scale-105:hover { transform: scale(1.05); }
.hover\\:shadow-medium:hover { box-shadow: var(--shadow-medium); }
.hover\\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.transition-all { transition: var(--transition-smooth); }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
    .container { max-width: 1536px; }
}

/* Component Styles */

/* Cards */
.card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.card:hover {
    box-shadow: var(--shadow-medium);
}

.card-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.75rem;
    color: hsl(var(--card-foreground));
    margin-bottom: 0.25rem;
}

.card-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Buttons */
.btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    color: hsl(var(--primary-foreground));
    background: hsl(var(--primary));
    box-shadow: var(--shadow-medium);
}

.btn-lg:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

/* Hero CTA variant for higher contrast on light hero */
.btn-hero {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 45%, #0EA5E9 100%);
    color: #ffffff;
    border: 1px solid #1E3A8A;
    box-shadow: 0 10px 24px rgba(37,99,235,0.35), 0 2px 8px rgba(15,23,42,0.15);
}
.btn-hero:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #0891B2 100%);
}

/* Accessibility: clear focus ring */
.btn-lg:focus-visible {
    outline: 3px solid #93C5FD;
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    text-decoration: none;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn:hover {
    background: hsl(var(--primary) / 0.9);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

/* Badges - All variants */
.badge-secondary {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border: 1px solid transparent;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: transparent;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

.badge-default {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 1px solid transparent;
}

.badge-destructive {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
    border: 1px solid transparent;
}

.badge-warning {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(45, 93%, 47%);
    color: hsl(0, 0%, 100%);
    border: 1px solid transparent;
}

.badge-info {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(210, 100%, 50%);
    color: hsl(0, 0%, 100%);
    border: 1px solid transparent;
}

.badge-primary {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 1px solid transparent;
}

.badge-success {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(142, 76%, 36%);
    color: hsl(0, 0%, 100%);
    border: 1px solid transparent;
}

/* Inputs */
.input {
    display: flex;
    width: 100%;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid hsl(var(--input));
    background: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.input:focus {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

/* Tabs */
.tabs-list {
    display: grid;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--muted) / 0.5);
    backdrop-filter: blur(4px);
}

.tab-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    transition: var(--transition-smooth);
}

.tab-trigger.active,
.tab-trigger:hover {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: var(--shadow-soft);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Flex utilities */
.flex-1 { flex: 1 1 0%; }

/* Text utilities for gradients */
/* Use this for text gradients to avoid clipping issues */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent { color: transparent; }

/* Responsive utilities */
.max-w-2xl { max-width: 42rem; }

/* Animation Classes */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.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; }
.float-animation { animation: float 3s ease-in-out infinite; }

/* Animation Delays */
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-1000 { animation-delay: 1s; }
.animation-delay-2000 { animation-delay: 2s; }

/* Patient Grid Layout - Matching Reference Design */
.patient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .patient-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .patient-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .patient-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Patient Card Styling */
.patient-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    box-shadow: 0 2px 8px hsl(215 25% 15% / 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: fit-content;
}

.patient-card:hover {
    box-shadow: 0 4px 16px hsl(215 25% 15% / 0.12);
    transform: translateY(-2px);
}

/* Patient Card Header */
.patient-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem 1rem;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.patient-avatar span {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
}

.patient-details h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0;
    line-height: 1.2;
}

.patient-details p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    margin-top: 2px;
}

/* Status Badge - Top Right */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-ready {
    background: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
    border: 1px solid hsl(var(--warning) / 0.2);
}

.status-processing {
    background: hsl(var(--secondary) / 0.1);
    color: hsl(var(--secondary));
    border: 1px solid hsl(var(--secondary) / 0.2);
}

.status-approved {
    background: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    border: 1px solid hsl(var(--success) / 0.2);
}

.status-denied {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
    border: 1px solid hsl(var(--destructive) / 0.2);
}

/* Patient Card Body */
.patient-card-body {
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.patient-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-label {
    font-size: 0.8rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.field-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.field-value.amount {
    color: hsl(var(--primary));
    font-weight: 700;
}

/* Patient Card Footer */
.patient-card-footer {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Apply Claim Button */
.btn-apply-claim {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: 1px solid hsl(var(--primary));
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: center;
}

.btn-apply-claim:hover {
    background: hsl(var(--primary) / 0.9);
    transform: translateY(-1px);
}

.btn-apply-claim .btn-icon {
    width: 14px;
    height: 14px;
}

/* View Info Button */
.btn-view-info {
    background: transparent;
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-view-info:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
    transform: translateY(-1px);
}

.btn-view-info .btn-icon {
    width: 16px;
    height: 16px;
}

/* Active status filter chip styling */
.active-filter {
    background: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    border-color: hsl(var(--primary)) !important;
}

/* Chip hover effects */
.badge-outline, .badge-secondary {
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.badge-outline:hover, .badge-secondary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.badge-outline:active, .badge-secondary:active {
    transform: translateY(0);
}

/* Line clamp utility for truncating text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Activity status indicators */
.activity-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.activity-indicator.processing {
    background: #3b82f6;
    animation: pulse 2s infinite;
}

.activity-indicator.completed {
    background: #10b981;
}

.activity-indicator.error {
    background: #ef4444;
}

/* Enhanced activity animations */
@keyframes activityPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.activity-pulse {
    animation: activityPulse 1.5s ease-in-out infinite;
}

/* Appeals Dashboard Button (Post-Submission link) */
.btn-appeals {
    background: linear-gradient(135deg, #059669 0%, #10B981 45%, #2DD4BF 100%);
    color: #ffffff;
    border: 1px solid #047857;
    box-shadow: 0 10px 24px rgba(16,185,129,0.35), 0 2px 8px rgba(15,23,42,0.15);
}
.btn-appeals:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 50%, #10B981 100%);
    opacity: 0.95;
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(16,185,129,0.4), 0 4px 12px rgba(15,23,42,0.2);
}
.btn-appeals:focus-visible {
    outline: 3px solid #6EE7B7;
    outline-offset: 2px;
}
