/* reckue-modern — custom Redmine theme */
@import url(/assets/application-33e739e5.css);

/* ── Variables ── */
:root {
  --rm-accent: #4361ee;
  --rm-accent-hover: #3a56d4;
  --rm-accent-light: #eef1ff;
  --rm-header-bg: #1e293b;
  --rm-header-text: #f1f5f9;
  --rm-bg: #f8fafc;
  --rm-surface: #ffffff;
  --rm-text: #1e293b;
  --rm-text-muted: #64748b;
  --rm-border: #e2e8f0;
  --rm-border-light: #f1f5f9;
  --rm-radius: 6px;
  --rm-radius-lg: 10px;
  --rm-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --rm-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
  --rm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rm-success: #22c55e;
  --rm-warning: #f59e0b;
  --rm-error: #ef4444;
  --rm-info: #3b82f6;
}

/* ── Base ── */
body {
  font-family: var(--rm-font);
  background: var(--rm-bg);
  color: var(--rm-text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rm-accent); }
a:hover { color: var(--rm-accent-hover); }

/* ── Header ── */
#header {
  background: var(--rm-header-bg);
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 0;
  min-height: auto;
}

#header h1 {
  color: var(--rm-header-text);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

#header a { color: var(--rm-header-text); }
#header a:hover { color: #ffffff; }

/* Quick search */
#header #quick-search {
  color: var(--rm-header-text);
}
#header #quick-search input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--rm-radius);
  color: var(--rm-header-text);
  padding: 4px 10px;
  font-size: 0.85rem;
  transition: background 0.2s, border 0.2s;
}
#header #quick-search input:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
  outline: none;
}
#header #quick-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* Top menu */
#top-menu {
  background: rgba(0,0,0,0.15);
  font-size: 0.8rem;
  padding: 4px 12px;
  border: none;
}
#top-menu a { color: rgba(255,255,255,0.8); }
#top-menu a:hover { color: #ffffff; }
#top-menu #loggedas { color: rgba(255,255,255,0.6); }

/* ── Main menu (tabs) ── */
#main-menu {
  background: var(--rm-header-bg);
  border: none;
  padding: 0 12px;
}

#main-menu ul { margin: 0; padding: 0; }

#main-menu li a {
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: none;
  border-radius: var(--rm-radius) var(--rm-radius) 0 0;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  margin: 0 1px;
}

#main-menu li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

#main-menu li a.selected {
  color: var(--rm-text);
  background: var(--rm-bg);
  font-weight: 600;
}

/* ── Content area ── */
#content {
  background: var(--rm-surface);
  border-radius: var(--rm-radius-lg);
  box-shadow: var(--rm-shadow);
  padding: 24px;
  margin: 0;
}

#main { padding: 16px; }

/* ── Sidebar ── */
#sidebar {
  background: var(--rm-surface);
  border-radius: var(--rm-radius-lg);
  box-shadow: var(--rm-shadow);
  padding: 16px;
  margin-left: 12px;
  border: 1px solid var(--rm-border);
}

#sidebar h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rm-text-muted);
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

#sidebar h3:first-child { margin-top: 0; }

#sidebar a {
  color: var(--rm-text);
  font-size: 0.88rem;
}
#sidebar a:hover { color: var(--rm-accent); }

/* ── Tables (issues list, etc.) ── */
table.list {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  overflow: hidden;
  width: 100%;
}

table.list thead th {
  background: var(--rm-border-light);
  color: var(--rm-text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 2px solid var(--rm-border);
}

table.list tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rm-border);
  font-size: 0.88rem;
}

table.list tbody tr:last-child td {
  border-bottom: none;
}

table.list tbody tr:hover td {
  background: var(--rm-accent-light);
}

table.list tbody tr.odd { background: var(--rm-surface); }
table.list tbody tr.even { background: var(--rm-surface); }

/* ── Buttons ── */
input[type="submit"],
input[type="button"],
button,
a.button,
.button {
  background: var(--rm-accent);
  color: #ffffff;
  border: none;
  border-radius: var(--rm-radius);
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  font-family: var(--rm-font);
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
a.button:hover,
.button:hover {
  background: var(--rm-accent-hover);
  box-shadow: 0 2px 6px rgba(67,97,238,0.3);
}

input[type="submit"]:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rm-accent);
  outline-offset: 2px;
}

/* Secondary / cancel links */
a.icon.icon-cancel,
a.icon.icon-del {
  color: var(--rm-text-muted);
}

/* ── Forms ── */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
select {
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  padding: 7px 10px;
  font-size: 0.88rem;
  font-family: var(--rm-font);
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--rm-surface);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--rm-accent);
  box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
  outline: none;
}

/* ── Issue detail ── */
div.issue div.attributes {
  background: var(--rm-border-light);
  border-radius: var(--rm-radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

div.issue .attribute .label {
  color: var(--rm-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

div.issue .subject h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rm-text);
  margin-bottom: 4px;
}

/* Status badges */
.status { font-weight: 500; }

/* Priority pills */
.priority-highest, .priority-urgent {
  color: var(--rm-error);
  font-weight: 600;
}

/* ── Pagination ── */
.pagination {
  margin: 16px 0;
}

.pagination a,
.pagination span.current {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 2px;
  transition: background 0.15s;
}

.pagination a {
  color: var(--rm-text);
  background: var(--rm-border-light);
}

.pagination a:hover {
  background: var(--rm-accent-light);
  color: var(--rm-accent);
}

.pagination span.current {
  background: var(--rm-accent);
  color: #ffffff;
}

/* ── Flash messages ── */
#flash_notice,
div.flash.notice {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--rm-radius);
  padding: 12px 16px;
  font-size: 0.88rem;
}

#flash_error,
div.flash.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--rm-radius);
  padding: 12px 16px;
  font-size: 0.88rem;
}

#flash_warning,
div.flash.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--rm-radius);
  padding: 12px 16px;
  font-size: 0.88rem;
}

/* ── Wiki ── */
.wiki h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rm-text);
  border-bottom: 2px solid var(--rm-border);
  padding-bottom: 8px;
  margin-top: 24px;
}

.wiki h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rm-text);
  border-bottom: 1px solid var(--rm-border);
  padding-bottom: 6px;
  margin-top: 20px;
}

.wiki h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rm-text);
  margin-top: 16px;
}

.wiki pre,
.wiki code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 0.85rem;
}

.wiki code {
  background: var(--rm-border-light);
  padding: 2px 6px;
  border-radius: 4px;
  color: #be185d;
}

.wiki pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--rm-radius);
  padding: 16px;
  overflow-x: auto;
  border: none;
  line-height: 1.5;
}

.wiki pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.wiki blockquote {
  border-left: 3px solid var(--rm-accent);
  background: var(--rm-accent-light);
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 0 var(--rm-radius) var(--rm-radius) 0;
  color: var(--rm-text);
  font-style: normal;
}

.wiki table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  overflow: hidden;
  width: 100%;
  margin: 12px 0;
}

.wiki table th {
  background: var(--rm-border-light);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--rm-border);
}

.wiki table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--rm-border);
  font-size: 0.88rem;
}

.wiki table tr:last-child td {
  border-bottom: none;
}

.wiki table tr:hover td {
  background: var(--rm-accent-light);
}

.wiki hr {
  border: none;
  border-top: 1px solid var(--rm-border);
  margin: 24px 0;
}

.wiki ul, .wiki ol {
  padding-left: 24px;
}

.wiki li {
  margin-bottom: 4px;
  line-height: 1.6;
}

/* ── Project overview ── */
.mypage-box, .overview {
  background: var(--rm-surface);
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  padding: 16px;
}

/* ── Contextual menu ── */
.contextual {
  font-size: 0.85rem;
}

.contextual a {
  color: var(--rm-text-muted);
}
.contextual a:hover {
  color: var(--rm-accent);
}

/* ── Breadcrumb / title ── */
#content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rm-text);
  margin-bottom: 16px;
}

/* ── Footer ── */
#footer {
  color: var(--rm-text-muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--rm-border);
  padding: 12px 0;
}

/* ── Tooltips ── */
.tooltip {
  border-radius: var(--rm-radius);
  box-shadow: var(--rm-shadow-lg);
}

/* ── Calendar / datepicker ── */
table.cal { border-radius: var(--rm-radius); overflow: hidden; }
table.cal thead th { background: var(--rm-accent); color: #fff; }

/* ── Misc polish ── */
hr { border: none; border-top: 1px solid var(--rm-border); }

fieldset {
  border: 1px solid var(--rm-border);
  border-radius: var(--rm-radius);
  padding: 16px;
}

fieldset legend {
  color: var(--rm-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Tabs (generic) */
.tabs ul li a {
  border-radius: var(--rm-radius) var(--rm-radius) 0 0;
}

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  #content {
    border-radius: 0;
    padding: 16px;
  }
  #sidebar {
    margin-left: 0;
    margin-top: 12px;
  }
}

