/* ── GOOGLE FONT ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── PAGE ────────────────────────────────────────── */
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

/* ── MAIN CARD ───────────────────────────────────── */
.container {
  width: 640px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

/* ── CARD HEADER ─────────────────────────────────── */
.card-top {
  background: #0d47a1;
  padding: 24px 36px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.card-top-logo {
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
}

.card-top-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.card-top-text { color: #fff; }

.card-top-text h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.card-top-text p {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
  font-weight: 400;
}

/* ── FORM BODY ───────────────────────────────────── */
.form-body {
  padding: 32px 36px;
}

/* ── PAGE TITLE ──────────────────────────────────── */
h2 {
  font-size: 17px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e3ecf9;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #1565c0;
  border-radius: 2px;
}

/* ── FORM ────────────────────────────────────────── */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── FORM GROUP ──────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── FORM ROW ────────────────────────────────────── */
.form-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 160px;
}

/* ── LABEL ───────────────────────────────────────── */
label {
  font-size: 11px;
  font-weight: 600;
  color: #5c6b8a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

/* ── INPUT / SELECT ──────────────────────────────── */
input, select {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1.5px solid #d0dff8;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  width: 100%;
  background: #f8faff;
  color: #1a1a2e;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
  background: #ffffff;
}

input:disabled {
  background: #e8f0fe;
  color: #1565c0;
  font-weight: 700;
  border-color: #c5d8f7;
}

/* ── BONUS / DEDUCTION CONTAINERS ────────────────── */
#bonusContainer,
#deductionContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#bonusContainer div,
#deductionContainer div {
  display: flex;
  gap: 8px;
  align-items: center;
}

#bonusContainer input,
#deductionContainer input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 7px;
  border: 1.5px solid #d0dff8;
  font-size: 13px;
  background: #f8faff;
}

/* ── BUTTON GROUP ────────────────────────────────── */
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── MAIN BUTTONS ────────────────────────────────── */
button {
  flex: 1;
  min-width: 120px;
  padding: 13px 20px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 14px rgba(13, 71, 161, 0.3);
  letter-spacing: 0.2px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 71, 161, 0.38);
}

button:active { transform: translateY(0); }

/* ── ADD BONUS / DEDUCTION BUTTON ────────────────── */
.form-group button {
  margin-top: 8px;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.22);
  font-size: 13px;
  padding: 9px 16px;
}

/* ── DIVIDER SECTION ─────────────────────────────── */
.section-divider {
  font-size: 11px;
  font-weight: 700;
  color: #1565c0;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1.5px solid #e3ecf9;
  padding-bottom: 8px;
  margin-top: 6px;
}

/* ── HISTORY TABLE ───────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

table thead tr { background: #0d47a1; }
table thead th {
  color: #fff;
  font-weight: 600;
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table tbody tr:nth-child(even) { background: #f3f7ff; }
table tbody tr:hover { background: #e8f0fe; }
table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #e8eef8;
  color: #2c3e60;
}

/* ── CARD FOOTER ─────────────────────────────────── */
.card-footer {
  background: #f8faff;
  border-top: 1.5px solid #e3ecf9;
  padding: 14px 36px;
  font-size: 11px;
  color: #7a8faf;
  text-align: center;
}

/* ── LOGOUT BUTTON ───────────────────────────────── */
.logout-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: none;
  min-width: auto;
  flex: none;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
