/* =========================================================
   e-Prescription by TechShilpo — Premium SaaS Theme
   ========================================================= */

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

:root {
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-500: #6366f1;
    --brand-600: #4f46e5;
    --brand-700: #4338ca;
    --brand-900: #312e81;

    --accent-500: #14b8a6;
    --accent-600: #0d9488;

    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-300: #cbd5e1;
    --ink-100: #f1f5f9;
    --ink-50:  #f8fafc;

    --success: #10b981;
    --danger:  #ef4444;
    --warning: #f59e0b;
    --info:    #0ea5e9;

    --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --grad-soft:  linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
    --grad-hero:  linear-gradient(135deg, #312e81 0%, #6366f1 50%, #14b8a6 100%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 4px 14px rgba(15,23,42,.08);
    --shadow-lg: 0 14px 40px rgba(15,23,42,.12);
    --shadow-xl: 0 24px 60px rgba(15,23,42,.18);
}

* { box-sizing: border-box; }

html, body {
    font-family: 'Hind Siliguri', 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink-900);
    background: var(--ink-50);
    scroll-behavior: smooth;
}

body { min-height: 100vh; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

/* ===================== Animations ===================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px);} to {opacity:1; transform:none;} }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-24px);} to {opacity:1; transform:none;} }
@keyframes slideInRight{ from { opacity:0; transform:translateX(24px);} to {opacity:1; transform:none;} }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }
.animate-fadeIn { animation: fadeIn .7s ease both; }

/* ===================== Buttons ===================== */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.7rem 1.35rem;
    letter-spacing: 0.2px;
    border: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    text-transform: none;
    font-size: .95rem;
}
.btn:focus { box-shadow: 0 0 0 4px rgba(99,102,241,.25) !important; }
.btn-lg { padding: .9rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .8rem; font-size: .8rem; border-radius: 8px; }

.btn-primary { background: var(--grad-brand); color:#fff; box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99,102,241,.45); color:#fff; }

.btn-outline-primary { border: 2px solid var(--brand-500); color: var(--brand-600); background: transparent; }
.btn-outline-primary:hover { background: var(--brand-500); color:#fff; transform: translateY(-2px); }

.btn-success { background: linear-gradient(135deg,#10b981,#059669); color:#fff; box-shadow:0 8px 20px rgba(16,185,129,.3); }
.btn-success:hover { transform: translateY(-2px); color:#fff; }
.btn-danger  { background: linear-gradient(135deg,#ef4444,#b91c1c); color:#fff; box-shadow:0 8px 20px rgba(239,68,68,.3); }
.btn-warning { background: linear-gradient(135deg,#f59e0b,#d97706); color:#fff; }
.btn-warning:hover { color:#fff; }
.btn-info    { background: linear-gradient(135deg,#0ea5e9,#0369a1); color:#fff; }
.btn-info:hover { color:#fff; }
.btn-secondary{ background:#e2e8f0; color:var(--ink-700); }
.btn-secondary:hover { background:#cbd5e1; color:var(--ink-900); }

.btn-ghost-white { background: rgba(255,255,255,.15); color:#fff; border:1px solid rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.25); color:#fff; }

/* ===================== Cards ===================== */
.card {
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: #fff;
    transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--ink-100);
    padding: 1rem 1.25rem;
    font-weight: 600;
}
.card-body { padding: 1.25rem 1.35rem; }

/* ===================== Forms ===================== */
.form-label { font-weight: 600; color: var(--ink-700); margin-bottom: .4rem; }
.form-control, .form-select {
    border: 1.5px solid var(--ink-300);
    border-radius: var(--radius-md);
    padding: .7rem .9rem;
    font-size: .95rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}

/* ===================== Tables ===================== */
.table {
    --bs-table-hover-bg: rgba(99,102,241,.05);
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    background: var(--ink-50);
    color: var(--ink-700);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    border-bottom: 1px solid var(--ink-100);
    padding: .9rem 1rem;
}
.table tbody td { padding: .9rem 1rem; vertical-align: middle; border-color: var(--ink-100); }

/* ===================== Dashboard layout ===================== */
.app-shell { display: flex; min-height: 100vh; background: var(--ink-50); }

.app-sidebar {
    width: 260px;
    background: #fff;
    border-right: 1px solid var(--ink-100);
    padding: 1.25rem 0.75rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 40;
}
.app-sidebar .brand {
    display: flex; align-items: center; gap: .6rem;
    padding: .4rem .5rem 1rem;
    border-bottom: 1px solid var(--ink-100);
    margin-bottom: 1rem;
}
.app-sidebar .brand .logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--grad-brand);
    display: grid; place-items: center; color: #fff; font-weight: 800;
    box-shadow: var(--shadow-md);
}
.app-sidebar .brand .title { font-weight: 800; line-height: 1.1; }
.app-sidebar .brand .subtitle { font-size: .72rem; color: var(--ink-500); }

.app-sidebar .nav-link {
    display: flex; align-items: center; gap: .65rem;
    color: var(--ink-700);
    font-weight: 500;
    padding: .7rem .85rem;
    margin: .15rem 0;
    border-radius: 10px;
    transition: all .2s;
}
.app-sidebar .nav-link i { font-size: 1.1rem; width: 20px; text-align: center; }
.app-sidebar .nav-link:hover { background: var(--ink-50); color: var(--brand-600); }
.app-sidebar .nav-link.active { background: var(--grad-brand); color:#fff; box-shadow: var(--shadow-md); }
.app-sidebar .nav-link.active i { color: #fff; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    padding: .85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
}
.app-topbar .title { font-weight: 700; font-size: 1.15rem; }
.app-topbar .user-chip {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .8rem;
    border-radius: 999px;
    background: var(--ink-50);
    color: var(--ink-700);
    font-weight: 600;
    font-size: .9rem;
}

.app-content { padding: 1.5rem; flex: 1; }

/* Mobile sidebar */
.sidebar-toggle { display: none; background: transparent; border: none; font-size: 1.4rem; color: var(--ink-700); }
@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%);
        transition: transform .25s ease; box-shadow: var(--shadow-lg);
    }
    .app-sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
    .sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 35;
        opacity: 0; visibility: hidden; transition: opacity .2s;
    }
    .sidebar-backdrop.open { opacity: 1; visibility: visible; }
}

/* ===================== Stat cards ===================== */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    color: #fff;
    box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
    transition: transform .25s ease;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon {
    position: absolute; right: 1rem; top: 1rem; font-size: 2.5rem; opacity: .35;
}
.stat-card .label { font-size: .85rem; opacity: .9; letter-spacing: .03em; }
.stat-card .value { font-size: 2rem; font-weight: 800; margin-top: .25rem; }
.stat-card .footer-link { color: rgba(255,255,255,.9); font-weight: 600; text-decoration: none; font-size: .85rem; }
.stat-card.brand   { background: var(--grad-brand); }
.stat-card.green   { background: linear-gradient(135deg,#10b981,#0d9488); }
.stat-card.sky     { background: linear-gradient(135deg,#0ea5e9,#2563eb); }
.stat-card.amber   { background: linear-gradient(135deg,#f59e0b,#ef4444); }

/* ===================== Badges ===================== */
.badge-soft { display:inline-flex; align-items:center; gap:.25rem; padding:.3rem .6rem; border-radius:999px; font-size:.75rem; font-weight:600;}
.badge-soft.success { background: #d1fae5; color:#047857; }
.badge-soft.danger  { background: #fee2e2; color:#b91c1c; }
.badge-soft.warning { background: #fef3c7; color:#b45309; }
.badge-soft.info    { background: #e0f2fe; color:#0369a1; }

/* ===================== Auth pages ===================== */
.auth-wrap {
    min-height: 100vh;
    background: var(--grad-hero);
    display: grid; place-items: center;
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%; max-width: 480px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeIn .6s ease both;
}
.auth-card .auth-head {
    padding: 1.75rem 2rem 1.25rem;
    text-align: center;
    background: var(--grad-brand);
    color: #fff;
}
.auth-card .auth-head .logo {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255,255,255,.2); display: inline-grid; place-items: center;
    font-size: 1.8rem; margin-bottom: .5rem;
}
.auth-card .auth-body { padding: 1.75rem 2rem 2rem; }
.auth-card .muted { color: var(--ink-500); }

/* ===================== Landing Page ===================== */
.landing-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(15,23,42,.06);
    padding: .85rem 0;
}
.landing-nav .brand { display:flex; align-items:center; gap:.6rem; font-weight:800; color:var(--ink-900); font-size:1.15rem;}
.landing-nav .brand .logo {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--grad-brand); display:grid; place-items:center; color:#fff; box-shadow: var(--shadow-md);
}

.hero {
    position: relative;
    background: var(--grad-hero);
    color: #fff;
    padding: 6rem 0 7rem;
    overflow: hidden;
}
.hero::before, .hero::after {
    content:''; position:absolute; border-radius:50%; filter: blur(60px); opacity:.35;
}
.hero::before { width: 480px; height: 480px; background:#ec4899; top:-120px; right:-120px; }
.hero::after  { width: 420px; height: 420px; background:#14b8a6; bottom:-140px; left:-140px; }
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
    display:inline-flex; align-items:center; gap:.4rem;
    background: rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25);
    padding: .4rem .8rem; border-radius: 999px; font-size:.85rem; font-weight:600;
    backdrop-filter: blur(8px);
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.15; margin: 1rem 0 1rem; font-weight: 800; }
.hero p.lead { font-size: 1.15rem; opacity: .95; max-width: 640px; }
.hero .cta-row { display:flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.hero-art {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    animation: float 5s ease-in-out infinite;
}

.section { padding: 5rem 0; }
.section .section-title { text-align:center; margin-bottom: 3rem; }
.section .section-title .eyebrow {
    display:inline-block; color: var(--brand-600); font-weight: 700;
    background: var(--brand-50); padding: .35rem .8rem; border-radius: 999px; font-size:.85rem;
}
.section .section-title h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: .6rem; }
.section .section-title p  { color: var(--ink-500); max-width: 640px; margin: .6rem auto 0; }

.feature-card {
    background: #fff; border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg); padding: 1.5rem;
    height: 100%; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.feature-card .icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; font-size: 1.4rem; color: #fff;
    background: var(--grad-brand); margin-bottom: 1rem; box-shadow: var(--shadow-md);
}
.feature-card h5 { margin: 0 0 .4rem; }
.feature-card p  { color: var(--ink-500); margin: 0; font-size: .95rem; }

.price-card {
    background: #fff; border: 1px solid var(--ink-100);
    border-radius: var(--radius-xl); padding: 2rem;
    height: 100%;
    transition: transform .25s, box-shadow .25s;
}
.price-card.featured {
    background: var(--grad-brand); color:#fff; border: none; position: relative;
    transform: scale(1.02);
}
.price-card.featured::after {
    content:'জনপ্রিয়'; position:absolute; top: 14px; right: 14px;
    background: #fff; color: var(--brand-600); font-weight:700; font-size:.75rem;
    padding: .25rem .65rem; border-radius: 999px;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card .price { font-size: 2.5rem; font-weight: 800; }
.price-card .price small { font-size: .95rem; opacity: .8; font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0; }
.price-card ul li { padding: .5rem 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.price-card.featured ul li { border-color: rgba(255,255,255,.25); }

.cta-section {
    background: var(--grad-brand);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.landing-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}
.landing-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.landing-footer a { color: #cbd5e1; }
.landing-footer a:hover { color: #fff; }
.landing-footer .bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1rem; margin-top: 2rem;
    font-size: .85rem; color: #94a3b8;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap: .5rem;
}

/* ===================== Utilities ===================== */
.bn { font-family: 'Hind Siliguri', sans-serif; }
.text-brand { color: var(--brand-600) !important; }
.bg-soft   { background: var(--grad-soft); }
.divider { height: 1px; background: var(--ink-100); margin: 1.5rem 0; }

/* Keep print untouched */
@media print { .no-print { display: none !important; } body { background: #fff; } }
