* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #f0f4f9;
  color: #1f2937;
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
}

.branding {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d6a9f 50%, #4488dd 100%);
}

.panel {
  background: #fff;
  padding: 40px 52px;
  overflow: auto;
}

.logo {
  max-width: 240px;
  margin-bottom: 24px;
}

h1, h2 {
  margin: 0 0 16px;
  font-weight: 500;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 20px;
  margin-top: 28px;
}

.hint {
  margin-bottom: 16px;
  color: #4b5563;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color .2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #2672ec;
  box-shadow: 0 0 0 3px rgba(38,114,236,.15);
}

button {
  border: 0;
  background: #2672ec;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}

button:hover {
  background: #1a5cdb;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

th {
  background: #f3f4f6;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #4b5563;
}

td {
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
}

tr:hover td {
  background: #f9fafb;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.ok {
  color: #15803d;
}

.panel-full {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 40px;
  background: #fff;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar a {
  font-size: 14px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

form.inline-form {
  display: inline;
}

form.inline-form button {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-approve {
  background: #15803d;
}

.btn-approve:hover {
  background: #166534;
}

.btn-reject {
  background: #b91c1c;
}

.btn-reject:hover {
  background: #991b1b;
}

.stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 4px;
}

.announcement-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.announcement-card summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}

.announcement-card summary:hover {
  background: #f1f5f9;
}

.announcement-date {
  font-weight: 400;
  font-size: 12px;
  color: #94a3b8;
}

.announcement-body {
  padding: 14px 18px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  border-top: 1px solid #e2e8f0;
}

.course-badge {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Consolas", "Courier New", monospace;
}
