/* RoMedINF / srimed-review UI overrides — modern, accessible, conference-friendly */

/* ——— Theme refresh ——— */
@layer theme {
  :root {
    /* Base palette */
    --paper: #fafbfc;
    --brand-fg: #0d3b66;
    --brand-bg: #e8f0f7;
    --brand-bg-dark: #c5d9e8;
    --headline-fg: #0d3b66;
    --headline-decor: #1a5f7a;
    --submission-bg-dark: #d4e2eb;
    --submission-bg: #e2ecf2;
    --submission-sidebar-bg: #eef4f8;

    /* Extra colors — use anywhere: color: var(--accent); background: var(--success-bg); */
    --accent: #1a5f7a;
    --accent-light: #e0f2f1;
    --secondary: #64748b;
    --success: #059669;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --muted: #94a3b8;
  }
}

/* ——— Typography ——— */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body {
  line-height: 1.5;
  color: #2c3e50;
}

/* ——— Header / site identity ——— */
#h-site {
  padding: 8px 16px 10px 24px;
  /* Remove the “boxed” look from the old header */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.header-site-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  height: 68px;
  width: auto;
  display: inline-block;
}
#p-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}
#h-right {
  padding-top: 10px;
}
#h-usermenubutton.btn-t {
  border: 1px solid #cbd5e0;
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  line-height: 1.1;
}
#h-usermenubutton.btn-t:hover {
  border-color: #94a3b8;
}
#h-usermenubutton.btn-t svg path {
  stroke: currentColor;
}
#p-quicklinks {
  margin-top: 10px;
}
#p-quicklinks form {
  display: flex;
  align-items: center;
  gap: 10px;
}
#n-search {
  width: min(420px, 48vw);
  border-radius: 999px;
  padding: 9px 12px;
}
#p-quicklinks button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--brand-fg, #0d3b66);
  color: #ffffff;
}
#p-quicklinks button[type="submit"]:hover {
  filter: brightness(0.95);
}
#h-site > h1,
#h-site .header-site-name {
  font-weight: 600;
  letter-spacing: -0.02em;
}
#h-page h1 {
  font-weight: 600;
  color: #1a365d;
}

/* ——— Forms: inputs, selects, textareas ——— */
input[type=text],
input[type=email],
input[type=password],
input[type=date],
input[type=number],
textarea,
.textarea,
select {
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 6px 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-fg, #0d3b66);
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.12);
}

/* ——— Buttons ——— */
.tbtn {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.15s, transform 0.05s;
}
.tbtn:hover {
  transform: translateY(-1px);
}
.tbtn-on {
  background: #0d3b66;
}
.tbtn-on:hover {
  background: #0a2d4d;
}
button.q,
button.qo,
a.btn {
  padding: 4px 8px;
  border-radius: 4px;
}

/* ——— Messages (success, warning, error) ——— */
.msg {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.msg.msg-confirm,
.msg.msg-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.msg.msg-warning {
  background: #fffbeb;
  border-color: #fcd34d;
}
.msg.msg-error {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* ——— Home / main content ——— */
.home-content {
  max-width: 1200px;
  margin: 0 auto;
}
.homegrp {
  margin-bottom: 1.25rem;
}
.homegrp h2.home {
  font-weight: 600;
  color: #1a365d;
  margin-bottom: 0.5rem;
}
.main-column p,
.main-column dl {
  line-height: 1.55;
}

/* ——— Links ——— */
a.q:hover,
a.qo:hover {
  text-decoration-thickness: 2px;
}

/* ——— Paper list / search ——— */
tr.pl:hover {
  background: rgba(13, 59, 102, 0.04);
}

/* ——— Sign-in page ——— */
body.body-signin {
  background: linear-gradient(160deg, #e8f0f7 0%, #f0f4f8 100%);
}

/* ——— Footer / divider ——— */
hr.c {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 0.5rem 0 0;
}

#p-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  font-size: 0.8125rem;
  color: #64748b;
  background: #f8fafc;
  border: 0;
  border-top: 1px solid #e2e8f0;
  border-radius: 0;
  text-align: center;
}

#p-footer a {
  color: var(--brand-fg, #0d3b66);
}

#p-footer a:hover {
  text-decoration: underline;
}
