/* theme_rr2.css — Recruit Ranker 2 look & feel (dark, glossy, blue gradients) */
/* Place in: app/static/css/theme_rr2.css and include AFTER your base styles.css */

:root{
  --bg: #0b1220;               /* deep midnight */
  --bg-2: #0b0f1a;             /* subtle gradient end */
  --card: #0f172a;             /* slate-900-ish */
  --card-muted: #111826;
  --text: #e5e7eb;             /* slate-200 */
  --muted: #94a3b8;            /* slate-400 */
  --border: rgba(255,255,255,.08);
  --primary-500: #60a5fa;      /* blue-400 */
  --primary-400: #93c5fd;      /* blue-300 */
  --primary-600: #2563eb;      /* blue-600 */
  --accent: #38bdf8;           /* sky-400 */
  --success: #34d399;
  --warning: #f59e0b;
  --error: #ef4444;
}

html, body{
  background: radial-gradient(1200px 800px at 10% 0%, var(--bg), var(--bg-2)) fixed;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.45;
}

.container{
  max-width: 920px;
  margin: 28px auto;
  padding: 0 16px;
}

h1{
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 18px;
}

h2{
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  opacity: .92;
  margin: 0 0 8px;
}

.card{
  background: linear-gradient(180deg, var(--card), var(--card-muted));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* Labels / hints */
label, .hint, .help{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Inputs & selects */
input[type="text"],
input[type="file"],
select,
textarea{
  width: 100%;
  color: var(--text);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(1em - 2px),
    calc(100% - 13px) calc(1em - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

input[type="file"]::file-selector-button{
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  color: #0b1220;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: 8px 10px;
  margin-right: 10px;
  cursor: pointer;
  font-weight: 600;
}

input[type="text"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus{
  border-color: rgba(147,197,253,.5);
  box-shadow: 0 0 0 4px rgba(37,99,235,.25);
  background: rgba(255,255,255,.04);
}

/* Buttons */
.button, button, input[type="submit"]{
  background: linear-gradient(90deg, var(--primary-500), var(--primary-400));
  color: #0b1220;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.button:hover, button:hover, input[type="submit"]:hover{
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(37,99,235,.25), 0 1px 0 rgba(255,255,255,.3) inset;
}

.button:active, button:active, input[type="submit"]:active{
  transform: translateY(1px);
}

/* “Secondary” buttons (e.g., back) */
.button.secondary{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Tables */
table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
}

thead th{
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

tbody td{
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

tbody tr:hover{
  background: rgba(147,197,253,.07);
}

pre.excerpt{
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  white-space: pre-wrap;
}

/* Form group spacing if you use <div class="form-group"> wrappers */
.form-group{ margin: 14px 0; }

/* Soft separators */
.hr{
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Small badges (e.g., language pills if you add later) */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight:600;
}

/* Mobile tweaks */
@media (max-width: 640px){
  .container{ margin: 16px auto; }
  h1{ font-size: 24px; }
  .card{ padding: 14px; border-radius: 14px; }
  .button{ width: 100%; }
}

/* --- Layout utilities for stretched action buttons --- */
.actions-stretch{ margin-top: 8px; }
.fullwidth{ width:100%; text-align:center; }
.actions-stretch .button{ width:100%; display:block; }
.no-print.actions-stretch{ margin:16px 0; }

/* Ensure inputs/selects and buttons align in width inside the same card */
.card .field, .card select, .card textarea, .card input[type="text"], .card .button.fullwidth{ width:100%; text-align:center; }
