/* ============================================================
   GLOBAL STYLES & DESIGN TOKENS
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* --- DESIGN TOKENS --- */
:root {
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Matched exactly to Bootstrap 5 Primary Blue */
    --blue:        #0d6efd; 
    --blue-light:  #EFF6FF;
    --blue-mid:    #DBEAFE;
    --blue-dark:   #0a58ca;

    --text:        #111827;
    --text-2:      #6B7280;
    --text-3:      #9CA3AF;

    --bg:          #F9FAFB;
    --surface:     #FFFFFF;
    --border:      #E5E7EB;
    --border-2:    #D1D5DB;

    --red:         #dc3545; /* Matched to Bootstrap Danger */
    --red-light:   #FEF2F2;
    --green:       #198754; /* Matched to Bootstrap Success */
    --green-light: #ECFDF5;

    --radius-sm:   6px;
    --radius:      10px;
    --radius-lg:   14px;
    --radius-xl:   20px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:      0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg:   0 .5rem 1rem rgba(0,0,0,.15); /* Matched to Bootstrap shadow */
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}


/* ============================================================
   GENERAL APP PAGES (Health, Settings, Users)
   ============================================================ */
body.app-page {
    background-color: #f4f5f7;
    overflow-y: auto; 
    display: block;
    height: auto;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}


/* ============================================================
   LOGIN PAGE
   ============================================================ */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #f4f5f7;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 350px;
    box-sizing: border-box;
}

.login-box h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-box button:hover { background: var(--blue-dark); }

.login-error {
    color: var(--red);
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: center;
    background: var(--red-light);
    padding: 10px;
    border-radius: 4px;
}


/* ============================================================
   HEALTH & PROTOCOLS
   ============================================================ */
.schedule-table th {
    background-color: #f8f9fa;
    text-align: center;
    font-size: 0.9em;
    text-transform: uppercase;
}

.schedule-table th.today-header {
    background-color: #e2e8f0;
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
}

.schedule-table td {
    vertical-align: top;
    min-width: 130px;
}

.schedule-table td.today-cell { background-color: #f8fafc; }

.time-col {
    width: 1%;
    white-space: nowrap;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 0.85rem;
}

.dose-badge {
    display: block;
    padding: 6px;
    margin-bottom: 6px;
    border-radius: 6px;
    text-align: left;
    background: #e9ecef;
    border-left: 3px solid var(--blue);
}

.dose-title {
    font-weight: bold;
    font-size: 0.85em;
    display: block;
    color: #333;
}

.dose-detail {
    font-size: 0.75em;
    color: #666;
    display: block;
    line-height: 1.2;
}

.gauge-needle { transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); }


/* ============================================================
   PEPTIDE CALCULATOR STYLES
   ============================================================ */

/* Syringe Selection Cards */
.syringe-card {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}
.syringe-card:hover {
    border-color: #00aced;
    background-color: #f0faff;
}
.syringe-card.active {
    border: 2px solid #00aced;
    box-shadow: 0 0 10px rgba(0, 172, 237, 0.15);
}

/* CSS Graphic for Syringe inside buttons to match the aesthetic */
.syringe-graphic {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-grow: 1;
    height: 14px;
}
.s-plunger {
    width: 25px;
    height: 8px;
    background-color: #f37b2d;
    border-radius: 2px;
}
.s-barrel {
    width: 80px; 
    height: 100%;
    border: 1px solid #ccc;
    background: rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}
.s-marks {
    font-size: 8px;
    line-height: 14px;
    color: #333;
    letter-spacing: 2px;
    margin-left: 4px;
    font-weight: bold;
}
.s-cap {
    width: 15px;
    height: 14px;
    background-color: #f37b2d;
    border-radius: 2px;
}

/* Preset Action Buttons */
.pep-btn {
    color: #333;
    border-color: #d1d1d1;
    background-color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
}
.pep-btn:hover {
    background-color: #f8f9fa;
    border-color: #00aced;
    color: #00aced;
}
.pep-btn.active {
    background-color: #fff;
    color: #00aced;
    border-color: #00aced;
    box-shadow: 0 0 0 1px #00aced;
}

/* Ruler Wrapper */
.ruler-wrapper {
    height: 60px;
    border: 1px solid #999;
    border-radius: 4px;
    background-color: #fff;
    overflow: hidden;
}

/* Ruler Fill Bar */
.ruler-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #00aced;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Ruler Ticks container */
.ruler-ticks {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 2;
}
.ruler-tick-box {
    border-right: none;
}

/* Individual tick lines */
.tick-line {
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    background-color: #000;
}
.tick-minor {
    height: 25%;
}
.tick-medium {
    height: 40%;
}
.tick-major {
    height: 60%;
    width: 2px;
}
/* Numbers under major ticks */
.tick-num {
    position: absolute;
    right: -8px;
    bottom: -1px;
    font-size: 11px;
    font-weight: bold;
    color: #000;
}
.supp-card{
    color:#006723;
}