:root {
  --bg: #0b0d12;
  --card: #141821;
  --text: #f0f2f6;
  --muted: #a1a7b3;
  --primary: #4b8bff;
  --primary-dark: #3569c7;
  --accent: #f5b93c;
  --success: #2db27d;
  --border: #232a36;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at top left, #1b2230 0%, #0b0d12 55%);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #11151d;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav a {
  margin-right: 16px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary);
}

.logout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logout button {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
}

.container {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 16px var(--shadow);
  margin-bottom: 20px;
}

.card.narrow {
  max-width: 520px;
  margin: 40px auto;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1, h2 {
  margin: 0 0 12px 0;
}

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

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 6px;
  font-size: 14px;
  background: #0f131b;
  color: var(--text);
}

button, .button {
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.inline select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.stack {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

button:hover, .button:hover {
  background: var(--primary-dark);
}

.secondary {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.success {
  background: var(--success);
}

.tag {
  padding: 4px 10px;
  background: #1e2531;
  border-radius: 999px;
  font-size: 12px;
}

.tag-done {
  background: #163426;
}

.alert {
  background: #3a1515;
  color: #f28d8d;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.muted {
  color: var(--muted);
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.notif-panel {
  display: flex;
  gap: 12px;
}

.notif-box {
  flex: 1;
  background: #1a212c;
  padding: 12px;
  border-radius: 10px;
}

.notif-box .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.notif-box .value {
  font-size: 22px;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

thead th {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}

.correction {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #10151e;
}

.correction-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.file-list {
  padding-left: 18px;
}

.notif-menu {
  position: relative;
  display: inline-block;
}

.notif-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notif-trigger::-webkit-details-marker {
  display: none;
}

.notif-count {
  background: var(--accent);
  color: #1b1402;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.notif-dropdown {
  position: absolute;
  right: 0;
  top: 32px;
  width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 12px 28px var(--shadow);
  z-index: 20;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.notif-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  display: grid;
  gap: 10px;
}

.notif-list li {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
}

.notif-list.full li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.admin-menu {
  position: relative;
  display: inline-block;
}

.admin-trigger {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
}

.admin-trigger::-webkit-details-marker {
  display: none;
}

.admin-dropdown {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 12px 28px var(--shadow);
  z-index: 20;
  display: grid;
  gap: 8px;
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logout {
    width: 100%;
    justify-content: space-between;
  }
}
