/* ============================================
   MODERN HEALTHCARE THEME - BLUE NUANCE
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Primary Colors - Modern Blue */
    --primary-color: #2563eb;      /* Tailwind Blue 600 */
    --primary-dark: #1d4ed8;       /* Tailwind Blue 700 */
    --primary-light: #eff6ff;      /* Tailwind Blue 50 */
    --primary-subtle: #dbeafe;     /* Tailwind Blue 100 */
    
    /* Secondary & Accents */
    --secondary-color: #0ea5e9;    /* Sky 500 */
    --accent-color: #3b82f6;       /* Blue 500 */
    
    /* Function Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    
    /* Neutrals */
    --dark-bg: #0f172a;            /* Slate 900 */
    --light-bg: #f8fafc;           /* Slate 50 */
    --white: #ffffff;
    --text-dark: #1e293b;          /* Slate 800 */
    --text-muted: #64748b;         /* Slate 500 */
    --border-color: #e2e8f0;       /* Slate 200 */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Shadows */
    --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);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Opacity Utilities */
.opacity-10 { opacity: 0.1 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* Wrapper & Layout */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.2s;
}

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

/* Sections */
.hero-section {
    background-color: var(--primary-color);
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1, .hero-section p {
    color: white;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

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

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

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

.btn-light:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

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

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

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

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

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

/* Custom Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary-subtle { background-color: var(--primary-subtle) !important; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Sidebar (if used) */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-link i {
    width: 24px;
    margin-right: 0.75rem;
}

/* Footer */
footer {
    background-color: var(--dark-bg) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

footer h5 {
    color: var(--white) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--white) !important;
}

/* Icon Boxes */
.icon-box {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s;
}

.card:hover .icon-box {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}


/* Additional Bootstrap Overrides */
.list-group-item.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Dashboard Refinements */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Active State Customization */
.list-group-item.active-menu {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.list-group-item.active-menu i {
    color: white !important;
}

.list-group-item:not(.active-menu):hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Table Refinements */
.table thead th {
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.table tbody td {
    vertical-align: middle;
}

/* Fallback for Bootstrap < 5.3 subtle backgrounds */
.bg-primary-subtle { background-color: #dbeafe !important; color: #1e40af !important; }
.bg-success-subtle { background-color: #dcfce7 !important; color: #166534 !important; }
.bg-info-subtle { background-color: #cffafe !important; color: #155e75 !important; }
.bg-warning-subtle { background-color: #fef3c7 !important; color: #92400e !important; }
.bg-danger-subtle { background-color: #fee2e2 !important; color: #991b1b !important; }

