@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Oswald:wght@500;600;700&family=Bebas+Neue&display=swap');

:root {
  --rmf-red: #0046ff;      /* brand primary blue - used for buttons, active states */
  --rmf-black: #1a1a2e;    /* deep navy - close to brand's dark tone, used for topbar */
  --rmf-gray: #f8f3ed;     /* warm cream background from brand palette */
  --rmf-border: #ecdfc9;   /* soft gold-tinted border from brand palette */
  --rmf-gold: #ba8748;     /* brand gold/tan accent */
  --font-body: 'Cairo', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;   /* stand-in for Araboto */
  --font-heading: 'Oswald', Arial, sans-serif;   /* stand-in for Humane */
  --font-numbers: 'Bebas Neue', Arial, sans-serif;  /* stand-in for Galgo */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--rmf-gray);
  color: var(--rmf-black);
}

.topbar {
  background: var(--rmf-black);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .brand {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 15px;
}

.topbar .brand span { color: var(--rmf-red); }

.topbar button {
  background: transparent;
  border: 1px solid #555;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

.login-wrap {
  max-width: 380px;
  margin: 80px auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-wrap h1 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin-bottom: 4px; }
.login-wrap .sub { color: #666; font-size: 13px; margin-bottom: 20px; }

label { display: block; font-size: 13px; margin: 12px 0 4px; color: #444; }

input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--rmf-border);
  border-radius: 6px;
  font-size: 14px;
}

button.primary {
  background: var(--rmf-red);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 16px;
  width: 100%;
}

button.secondary {
  background: white;
  border: 1px solid var(--rmf-border);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.error { color: #c0392b; font-size: 13px; margin-top: 8px; }
.ok-msg { color: #1a7a3c; font-size: 13px; margin-top: 8px; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button {
  background: white;
  border: 1px solid var(--rmf-border);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.tabs button.active { background: var(--rmf-black); color: white; border-color: var(--rmf-black); }

.card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.3px;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rmf-border); }
th { color: #555; font-size: 12px; text-transform: uppercase; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

.player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--rmf-border);
}

.player-name { font-weight: 600; }
.player-sub { font-size: 12px; color: #777; }

.status-btns { display: flex; gap: 6px; }
.status-btns button {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--rmf-border);
  background: white;
  cursor: pointer;
  font-size: 13px;
}
.status-btns button.present.active { background: #1a7a3c; color: white; border-color: #1a7a3c; }
.status-btns button.late.active { background: var(--rmf-gold); color: white; border-color: var(--rmf-gold); }
.status-btns button.absent.active { background: #c0392b; color: white; border-color: #c0392b; }

.badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #eee; }
.badge.sent { background: #dff5e4; color: #1a7a3c; }

.stat-number { font-family: var(--font-numbers); letter-spacing: 0.5px; }

.small { font-size: 12px; color: #777; }
