@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Brand Logo Identity: Cyan-Teal & Fresh Pharmacy Green */
    --brand-teal: #22A6B3;
    --brand-teal-hover: #1B8894;
    --brand-teal-dark: #165860;
    --brand-teal-light: #F0FBFD;
    --brand-teal-border: #B3EAF0;

    --brand-green: #52C58F;
    --brand-green-hover: #3FA876;
    --brand-green-dark: #2F855A;
    --brand-green-light: #F0FDF5;
    --brand-green-border: #BBF7D0;

    /* Luxury Light Surface Tokens */
    --bg-canvas: #F8FAFC;
    --bg-surface: #FFFFFF;
    --border-subtle: #E2E8F0;
    --border-focus: #22A6B3;
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;

    /* User-Requested Seafoam Theme Palette (Image match: #7CBFB9 / #72B8B2) */
    --seafoam-bg-start: #7CBFB9;
    --seafoam-bg-mid: #70B6AF;
    --seafoam-bg-end: #61A8A1;
    --seafoam-text-dark: #093430;
    --seafoam-text-muted: #114B45;
    --seafoam-glass-bg: rgba(255, 255, 255, 0.40);
    --seafoam-glass-border: rgba(255, 255, 255, 0.50);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-canvas);
    color: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-mono-receipt {
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

/* ==========================================================================
   Ultra-Premium Card Components
   ========================================================================== */
.tailadmin-card, 
.card-soft {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.tailadmin-card-hover,
.card-soft-hover {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tailadmin-card-hover:hover,
.card-soft-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(34, 166, 179, 0.08), 0 8px 10px -6px rgba(34, 166, 179, 0.04);
    border-color: var(--brand-teal-border);
    transform: translateY(-2px);
}

/* ==========================================================================
   Ultra-Premium Buttons
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-hover) 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(34, 166, 179, 0.25);
    border: 1px solid transparent;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--brand-teal-hover) 0%, var(--brand-teal-dark) 100%);
    box-shadow: 0 6px 14px rgba(34, 166, 179, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-secondary {
    background-color: #FFFFFF;
    color: var(--text-body);
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-secondary:hover {
    background-color: var(--brand-teal-light);
    color: var(--brand-teal-hover);
    border-color: var(--brand-teal-border);
    transform: translateY(-1px);
}

.btn-pharmacy {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-hover) 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(82, 197, 143, 0.25);
    border: 1px solid transparent;
}
.btn-pharmacy:hover {
    background: linear-gradient(135deg, var(--brand-green-hover) 0%, var(--brand-green-dark) 100%);
    box-shadow: 0 6px 14px rgba(82, 197, 143, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ==========================================================================
   Form Inputs & Selects
   ========================================================================== */
.input-field {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    background-color: #FFFFFF;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    color: var(--text-heading);
    transition: all 0.15s ease-in-out;
}
.input-field:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(34, 166, 179, 0.15);
}

/* ==========================================================================
   Pill Status Badges
   ========================================================================== */
.badge-teal {
    background-color: var(--brand-teal-light);
    color: var(--brand-teal-hover);
    border: 1px solid var(--brand-teal-border);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.badge-green {
    background-color: var(--brand-green-light);
    color: var(--brand-green-dark);
    border: 1px solid var(--brand-green-border);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.badge-success {
    background-color: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.badge-warning {
    background-color: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.badge-danger {
    background-color: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

.badge-info {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
}

/* ==========================================================================
   Smooth Scrollbar for Sidebar
   ========================================================================== */
.clean-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.clean-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.clean-scrollbar::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 4px;
}
.clean-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

/* ==========================================================================
   Impact Matrix Printer Preview (Epson TM-U220)
   ========================================================================== */
.receipt-paper {
    background: #fff;
    width: 320px;
    margin: 0 auto;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.35;
    color: #111;
    border: 1px dashed #bbb;
}

/* ==========================================================================
   Brand Gradient Healthcare Sidebar (from-[#144A50] via-[#1B8894] to-[#2F855A])
   ========================================================================== */
.sidebar-seafoam,
.sidebar-brand-gradient {
    background: linear-gradient(180deg, #144A50 0%, #1B8894 50%, #2F855A 100%);
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-seafoam-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 70%);
    pointer-events: none;
}

.sidebar-seafoam-scrollbar::-webkit-scrollbar,
.sidebar-brand-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.sidebar-seafoam-scrollbar::-webkit-scrollbar-track,
.sidebar-brand-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-seafoam-scrollbar::-webkit-scrollbar-thumb,
.sidebar-brand-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}
.sidebar-seafoam-scrollbar::-webkit-scrollbar-thumb:hover,
.sidebar-brand-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

