:root{
  /* Frontida brand */
  --brand: #397E06;        /* logo green */
  --brand-soft: #77A154;
  --mint: #3ED6B0;
  --accent: #E54615;       /* logo orange */

  /* Light medical UI */
  --bg: #F7FBF9;           /* soft medical white */
  --surface: #FFFFFF;
  --surface2: #F1F7F4;
  --stroke: rgba(20, 40, 30, .12);

  --text: #0F1F17;
  --muted: rgba(15, 31, 23, .70);

  --radius: 18px;
  --shadow: 0 16px 40px rgba(16, 36, 26, .10);

  --grad-brand: linear-gradient(135deg, #397E06, #3ED6B0);
}

/* Global base */
body{
  margin:0;
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(62,214,176,.18), transparent 55%),
    radial-gradient(900px 520px at 95% 15%, rgba(57,126,6,.14), transparent 55%),
    radial-gradient(900px 520px at 50% 110%, rgba(229,70,21,.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

/* Cards */
.card{
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 36, 26, .10);
}
.btn-primary{
  border: 1px solid rgba(57,126,6,.25);
  background: var(--grad-brand);
  color: #fff;
}
.btn-primary:hover{
  box-shadow: 0 14px 32px rgba(57,126,6,.18);
}
.btn-danger{
  border: 1px solid rgba(229,70,21,.25);
  background: rgba(229,70,21,.08);
  color: #7a1d07;
}
.btn-danger:hover{
  background: rgba(229,70,21,.14);
  border-color: rgba(229,70,21,.40);
}
.btn-secondary{
  border: 1px solid var(--stroke);
  background: var(--surface2);
  color: var(--text);
}
.btn-secondary:hover{
  background: #e4ede8;
}
/* Size modifier */
.btn-sm{
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}
/* Info variant */
.btn-info{
  border: 1px solid rgba(62,214,176,.35);
  background: rgba(62,214,176,.12);
  color: #0b6b58;
}
.btn-info:hover{
  background: rgba(62,214,176,.22);
}
/* Approve / confirm action */
.btn-approve{
  border: 1px solid rgba(57,126,6,.40);
  background: linear-gradient(135deg, #397E06, #3ED6B0);
  color: #fff;
  font-weight: 900;
  letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(57,126,6,.22);
}
.btn-approve:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(57,126,6,.35);
  filter: brightness(1.04);
}
.btn-approve:active{
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(57,126,6,.22);
}

/* Inputs */
input, select, textarea{
  width:100%;
  border: 1px solid rgba(20,40,30,.18);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 12px;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(62,214,176,.70);
  box-shadow: 0 0 0 4px rgba(62,214,176,.18);
}

/* Pills / tags */
.pill, .tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(20,40,30,.12);
  background: var(--surface2);
  font-weight:900;
  font-size:12.5px;
}

/* Standard application header controls.
   The dedicated unified-header stylesheet adds responsive behavior; this
   fallback keeps header buttons physically consistent on every themed page. */
.topbar .nav > a.btn,
.topbar .nav > button.btn,
.topbar .nav > summary.btn,
.topbar .nav > details > summary.btn,
.topbar .nav > .menu > .btn,
.topbar .nav > .menu > .revision-nav-wrap > .btn,
.topbar .nav > .btn-badge-wrap > .btn,
.topbar .actions > a.btn,
.topbar .actions > button.btn,
.topbar .actions > form > .btn{
  box-sizing:border-box !important;
  height:40px !important;
  min-height:40px !important;
  max-height:40px !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  vertical-align:middle !important;
}
.topbar .nav > .menu > .revision-nav-wrap{
  height:40px !important;
  min-height:40px !important;
  max-height:40px !important;
  display:inline-flex !important;
  align-items:stretch !important;
}

/* Dashboard account tag: always the final item after Logout. */
.nav-user-tag{
  white-space:nowrap;
  flex:0 0 auto;
}

/* Dots */
.dot{width:8px;height:8px;border-radius:99px}
.dot.good{background: var(--brand)}
.dot.info{background: var(--mint)}
.dot.warn{background: #ffcf5a}
.dot.bad{background: var(--accent)}

/* Tables (optional helper) */
table{width:100%; border-collapse:collapse}
th, td{padding:12px 10px; border-bottom:1px solid rgba(20,40,30,.10); text-align:left}
th{font-size:12px; letter-spacing:.2px; text-transform:uppercase; color: rgba(15,31,23,.65)}
