/* 
   Theme: Clinical Focus 
   Author: Aadhini e Publication
*/

:root {
    /* Primary Colors */
    --primary: #0284c7;
    /* Sky 600 */
    --primary-hover: #0369a1;
    /* Sky 700 */
    --secondary: #0d9488;
    /* Teal 600 */
    --secondary-hover: #0f766e;
    /* Teal 700 */

    /* Backgrounds */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    /* Slate 100 */

    /* Text */
    --text-main: #334155;
    /* Slate 700 */
    --text-heading: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Borders */
    --border-color: #e2e8f0;
    /* Slate 200 */
    --border-focus: #bae6fd;
    /* Sky 200 */

    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Metrics */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-heading);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* --- Components --- */

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    /* Only apply hover effect if specific class present or generally subtle */
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--text-muted);
    color: var(--text-heading);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

/* Forms */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-heading);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-label {
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Navbar */
.navbar-clinical {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar-clinical .navbar-brand {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.navbar-clinical .nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-clinical .nav-link:hover,
.navbar-clinical .nav-link.active {
    color: var(--primary);
}

/* Hero Section */
.hero-clinical {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
}

.hero-clinical h1 {
    color: var(--text-heading);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.hero-clinical .lead {
    color: var(--text-muted);
}

/* Badges */
.badge-clinical {
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.bg-primary-subtle {
    background-color: #e0f2fe;
    color: #0369a1;
}

.bg-secondary-subtle {
    background-color: #ccfbf1;
    color: #0f766e;
}

.bg-warning-subtle {
    background-color: #fef3c7;
    color: #b45309;
}

.bg-danger-subtle {
    background-color: #fee2e2;
    color: #b91c1c;
}

/* Utilities */
.text-justify {
    text-align: justify;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modern Dashboard Additions */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more opaque for legibility */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Stat Cards & Icons */
.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    /* Squircle */
    margin: 0 auto 1rem;
    position: relative;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.glass-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Colors for stats */
.bg-orange-subtle {
    background-color: #fff7ed;
    color: #ea580c;
}

.bg-purple-subtle {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.bg-rose-subtle {
    background-color: #fff1f2;
    color: #be123c;
}

/* Progress */
.progress-thin {
    height: 6px;
    border-radius: 10px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.progress-bar-gradient {
    background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 100%);
}