/* MARK6582 Survey Dashboard — styles matching course syllabus */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #222;
  line-height: 1.6;
  background: #f5f7fa;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  background-color: #1F3864;
  color: white;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.site-header .brand span {
  font-weight: normal;
  opacity: 0.75;
  font-size: 13px;
  margin-left: 10px;
}
.site-header .user-info {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.site-header .user-info a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-left: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.site-header .user-info a:hover { color: white; border-color: white; }

/* ── Main container ── */
.container {
  max-width: 860px;
  margin: 32px auto;
  padding: 0 20px;
}

/* ── Page title ── */
h1 {
  font-size: 18px;
  font-weight: bold;
  color: #1F3864;
  border-bottom: 2px solid #1F3864;
  padding-bottom: 6px;
  margin-bottom: 20px;
}
h2 {
  font-size: 15px;
  font-weight: bold;
  color: #2E4057;
  margin: 24px 0 10px;
}

/* ── Card ── */
.card {
  background: white;
  border: 1px solid #d0d7e3;
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 24px;
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead tr {
  background-color: #1F3864;
  color: white;
}
thead th {
  padding: 9px 12px;
  text-align: left;
  font-weight: normal;
  font-size: 13px;
}
tbody tr:nth-child(even) { background-color: #f0f4f8; }
tbody tr:nth-child(odd)  { background-color: white; }
tbody td {
  padding: 9px 12px;
  border: 1px solid #d0d7e3;
  vertical-align: middle;
}
tbody tr:hover { background-color: #e8edf5; }

/* ── Status badges ── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}
.badge-complete  { background: #d4edda; color: #1a6630; }
.badge-launched  { background: #fff3cd; color: #856404; }
.badge-pending   { background: #e9ecef; color: #555; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background-color: #1F3864;
  color: white;
}
.btn-primary:hover { background-color: #162a4e; }

.btn-secondary {
  background-color: #63666A;
  color: white;
}
.btn-secondary:hover { background-color: #4f5154; }

.btn-danger {
  background-color: #c0392b;
  color: white;
}
.btn-danger:hover { background-color: #a93226; }

.btn-sm { padding: 4px 12px; font-size: 12px; }

.btn:disabled, .btn[disabled] {
  background-color: #b0b8c8;
  cursor: default;
  color: #eee;
}

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 5px;
  color: #2E4057;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  border: 1px solid #b0b8c8;
  border-radius: 3px;
  color: #222;
  background: white;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1F3864;
  box-shadow: 0 0 0 2px rgba(31,56,100,0.15);
}
.form-group textarea { resize: vertical; }
.form-group .hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* ── Alerts ── */
.alert {
  padding: 10px 16px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-size: 13px;
}
.alert-error   { background: #fde8e8; border: 1px solid #e9b3b3; color: #7b1d1d; }
.alert-success { background: #d4edda; border: 1px solid #a3d4ac; color: #1a6630; }
.alert-info    { background: #e8eef7; border: 1px solid #b3c6e0; color: #1F3864; }

/* ── Login page ── */
.login-wrap {
  max-width: 400px;
  margin: 80px auto;
  padding: 0 20px;
}
.login-wrap h1 { font-size: 20px; }
.login-wrap .subtitle {
  color: #555;
  font-size: 13px;
  margin-bottom: 24px;
}

/* ── Admin nav ── */
.admin-nav {
  background: #2E4057;
  padding: 0 24px;
}
.admin-nav a {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 13px;
}
.admin-nav a:hover, .admin-nav a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* ── Summary stat ── */
.stat-bar {
  background: #e8eef7;
  border: 1px solid #b3c6e0;
  border-radius: 3px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #1F3864;
}
.stat-bar strong { font-size: 15px; }

/* ── Footer ── */
.site-footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 32px 0 20px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .container { margin: 16px auto; }
  .card { padding: 18px 16px; }
  thead { display: none; }
  tbody td {
    display: block;
    border-bottom: none;
  }
  tbody tr { border-bottom: 2px solid #d0d7e3; }
}
