/* ==============================
   Oslero Health - Core Styles
   Primary Brand Color: #1d9fe8
   ============================== */

/* 1️⃣ Root Variables */
:root {
    --oslero-primary: #1d9fe8;
    --oslero-primary-soft: rgba(29, 159, 232, 0.12);
}

/* ==============================
   2️⃣ Bootstrap Overrides
   ============================== */
.btn-primary {
    background-color: var(--oslero-primary);
    border-color: var(--oslero-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #168fce; /* slightly darker */
    border-color: #168fce;
}

.text-primary {
    color: var(--oslero-primary) !important;
}

.bg-primary {
    background-color: var(--oslero-primary) !important;
}

/* ==============================
   3️⃣ Tool UI Styling
   ============================== */

/* Tool header accent */
.tool-header {
    border-bottom: 2px solid var(--oslero-primary-soft);
}

/* Tool result box */
.tool-result {
    background: #f8fbff;
    border-left: 4px solid var(--oslero-primary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

/* Info highlight (tips, notes) */
.tool-info {
    background: var(--oslero-primary-soft);
    border-left: 4px solid var(--oslero-primary);
    padding: 1rem;
    border-radius: 8px;
}

/* ==============================
   4️⃣ Screening Severity / Risk
   ============================== */
.severity-low {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.severity-moderate {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.severity-high {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

/* ==============================
   5️⃣ Utility Helpers
   ============================== */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }

/* Hide print elements on screen */
.print-header,
.print-disclaimer {
  display: none;
}


/* ==============================
   5️⃣Print Media
   ============================== */

/* Hide print elements on screen */
.print-header,
.print-disclaimer {
  display: none;
}

/* Print rules */
@media print {

  body * {
    visibility: hidden !important;
  }

  #print-area,
  #print-area * {
    visibility: visible !important;
  }

  #print-area {
    position: absolute;
    inset: 0;
    padding: 24px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
  }

  /* Print header: logo + title + date */
  .print-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
  }

  .print-logo {
    height: 80px; /* bigger logo */
    margin-bottom: 16px;
  }

  .print-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
  }

  .print-date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 14px;
  }

  /* Print result content */
  #print-area .result-card {
    margin-top: 24px;
    font-size: 16px;
  }

  /* Fixed disclaimer at the bottom */
  .print-disclaimer {
    display: block;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    color: #555;
    border-top: 1px solid #ddd;
    padding: 12px 24px;
    text-align: center;
  }

  /* Hide non-essential elements */
  .tool-support-actions,
  .btn,
  nav,
  footer {
    display: none !important;
  }
}
