/**
 * PraniMart Universal Design System & Central Typography Tokens
 * Changing any variable in :root will automatically update typography & colors
 * across Admin Console, Seller Hub, Doctor Portal, and Storefront views.
 */

:root {
    /* ========================================================
       1. GLOBAL FONT FAMILIES
       ======================================================== */
    --pm-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --pm-font-serif: 'Playfair Display', Georgia, serif;
    --pm-font-calligraphy: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --pm-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

    /* ========================================================
       2. CENTRAL TYPOGRAPHY SCALE
       Change these values to alter font size everywhere across the site
       ======================================================== */
    --pm-font-size-2xs: 8px;
    /* Subtext, secondary timestamps, micro badges */
    --pm-font-size-xs: 9px;
    /* High-density tables, compact tabs, code tags */
    --pm-font-size-sm: 11px;
    /* Field labels, small badges, button-sm, breadcrumbs */
    --pm-font-size-base: 12.5px;
    /* Primary body text, form inputs, table data cells */
    --pm-font-size-md: 14px;
    /* Section titles, product card titles, topbar title */
    --pm-font-size-lg: 16px;
    /* Modal headings, card titles, prominent stats */
    --pm-font-size-xl: 18px;
    /* Main page headers, dashboard primary metric */
    --pm-font-size-2xl: 22px;
    /* Hero headers, storefront banner titles */

    /* Font Weights */
    --pm-weight-regular: 400;
    --pm-weight-medium: 500;
    --pm-weight-semibold: 600;
    --pm-weight-bold: 700;
    --pm-weight-extrabold: 800;

    /* Line Heights */
    --pm-leading-tight: 1.2;
    --pm-leading-normal: 1.45;
    --pm-leading-loose: 1.65;

    /* ========================================================
       3. CENTRAL BRAND PALETTE & TEXT COLORS
       ======================================================== */
    --pm-color-primary: #FF5B00;
    --pm-color-primary-hover: #EA580C;
    --pm-color-primary-light: #FFF0E8;
    --pm-color-primary-subtle: #FFF7F2;
    --pm-color-primary-border: #FED7AA;

    --pm-color-text: #0F172A;
    --pm-color-text-body: #1E293B;
    --pm-color-text-secondary: #334155;
    --pm-color-text-muted: #64748B;
    --pm-color-text-subtle: #94A3B8;

    --pm-color-border: #E2E8F0;
    --pm-color-border-subtle: #F1F5F9;

    --pm-color-bg-body: #F8FAFC;
    --pm-color-bg-card: #FFFFFF;
    --pm-color-bg-alt: #F8FAFC;

    /* Status Colors */
    --pm-status-green: #16A34A;
    --pm-status-green-bg: #DCFCE7;
    --pm-status-yellow: #D97706;
    --pm-status-yellow-bg: #FEF9C3;
    --pm-status-red: #DC2626;
    --pm-status-red-bg: #FEE2E2;
    --pm-status-blue: #1E40AF;
    --pm-status-blue-bg: #DBEAFE;
    --pm-status-orange: #9A3412;
    --pm-status-orange-bg: #FFEDD5;
}

/* ============================================================
   4. BASE APPLICATION & LAYOUT ELEMENT DEFAULTS
   ============================================================ */
html,
body {
    font-family: var(--pm-font-main);
    color: var(--pm-color-text-body);
    font-size: var(--pm-font-size-base);
    line-height: var(--pm-leading-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--pm-color-text);
    font-weight: var(--pm-weight-bold);
}

.page-header h1 {
    font-size: var(--pm-font-size-xl);
    font-weight: var(--pm-weight-extrabold);
    color: var(--pm-color-text);
}

.card-title,
.topbar-title {
    font-size: var(--pm-font-size-md);
    font-weight: var(--pm-weight-bold);
    color: var(--pm-color-text);
}

/* Form Controls */
.form-label {
    font-size: var(--pm-font-size-sm);
    font-weight: var(--pm-weight-semibold);
    color: var(--pm-color-text-secondary);
}

.form-control {
    font-family: var(--pm-font-main);
    font-size: var(--pm-font-size-base);
    color: var(--pm-color-text);
}

.form-hint {
    font-size: var(--pm-font-size-sm);
    color: var(--pm-color-text-muted);
}

/* Buttons */
.btn {
    font-family: var(--pm-font-main);
    font-size: var(--pm-font-size-sm);
    font-weight: var(--pm-weight-semibold);
}

.btn-sm {
    font-size: var(--pm-font-size-sm);
}

/* Badges */
.badge {
    font-size: var(--pm-font-size-sm);
    font-weight: var(--pm-weight-semibold);
}

/* Tables */
table {
    font-size: var(--pm-font-size-base);
}

th {
    font-size: var(--pm-font-size-sm);
    font-weight: var(--pm-weight-bold);
    color: var(--pm-color-text-muted);
}

/* Key-Value Details */
.detail-label,
.stat-label {
    font-size: var(--pm-font-size-sm);
    font-weight: var(--pm-weight-bold);
    color: var(--pm-color-text-muted);
}

.detail-value {
    font-size: var(--pm-font-size-base);
    color: var(--pm-color-text);
}

.stat-value {
    font-size: 20px;
    font-weight: var(--pm-weight-extrabold);
    color: var(--pm-color-text);
}

.stat-sub,
.breadcrumb {
    font-size: var(--pm-font-size-sm);
    color: var(--pm-color-text-subtle);
}

/* ============================================================
   5. CENTRAL UTILITY TYPOGRAPHY CLASSES
   Use these classes in Blade views for instant central control
   ============================================================ */
.pm-text-2xs {
    font-size: var(--pm-font-size-2xs) !important;
}

.pm-text-xs {
    font-size: var(--pm-font-size-xs) !important;
}

.pm-text-sm {
    font-size: var(--pm-font-size-sm) !important;
}

.pm-text-base {
    font-size: var(--pm-font-size-base) !important;
}

.pm-text-md {
    font-size: var(--pm-font-size-md) !important;
}

.pm-text-lg {
    font-size: var(--pm-font-size-lg) !important;
}

.pm-text-xl {
    font-size: var(--pm-font-size-xl) !important;
}

.pm-text-2xl {
    font-size: var(--pm-font-size-2xl) !important;
}

.pm-font-bold {
    font-weight: var(--pm-weight-bold) !important;
}

.pm-font-semibold {
    font-weight: var(--pm-weight-semibold) !important;
}

.pm-font-medium {
    font-weight: var(--pm-weight-medium) !important;
}

.pm-font-regular {
    font-weight: var(--pm-weight-regular) !important;
}

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

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

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

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

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

/* Clean Invisible Scrollbar Utility */
.pm-no-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.pm-no-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ============================================================
   6. CLEAN MINIMALIST DASHBOARD TOKENS (Google / Modern SaaS Style)
   Clean whitespace, subtle 1px borders, light numbers, no visual clutter
   ============================================================ */
.pm-clean-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
    overflow: hidden;
}

.pm-clean-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.pm-metric-stack {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.pm-metric-row {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.15s ease;
    background: #FFFFFF;
}

.pm-metric-row:last-child {
    border-bottom: none;
}

.pm-metric-row:hover {
    background: #FAFCFF;
}

.pm-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.pm-metric-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    letter-spacing: -0.1px;
}

.pm-metric-value {
    font-size: 32px;
    font-weight: 400;
    color: #0F172A;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.pm-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11.5px;
    font-weight: 600;
    color: #16A34A;
}

.pm-metric-pill-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pm-pill-green {
    background: #DCFCE7;
    color: #16A34A;
}

.pm-pill-neutral {
    background: #F1F5F9;
    color: #64748B;
}

.pm-pill-blue {
    background: #DBEAFE;
    color: #2563EB;
}

.pm-pill-red {
    background: #FEE2E2;
    color: #DC2626;
}

.pm-metric-footer {
    padding: 0.65rem 1.25rem;
    background: #FAFAFA;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 11px;
    color: #64748B;
}
