@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #111;
  padding: 24px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 620px;
}

header {
  text-align: center;
  margin-bottom: 36px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
  font-weight: 300;
}

.card {
  border: 1px solid #e0e0e0;
  padding: 24px;
  margin-bottom: 20px;
}

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

h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-header h2 {
  margin-bottom: 0;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d0d0d0;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  background: #fff;
  color: #111;
  transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #16e16e;
  box-shadow: 0 0 0 2px rgba(22, 225, 110, 0.15);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  accent-color: #16e16e;
}

.course-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.course-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #d0d0d0;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
}

.course-row input:focus {
  outline: none;
  border-color: #16e16e;
  box-shadow: 0 0 0 2px rgba(22, 225, 110, 0.15);
}

.btn {
  padding: 10px 22px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover {
  background: #111;
  color: #fff;
}

.btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-primary:hover {
  background: #16e16e;
  border-color: #16e16e;
  color: #111;
}

.btn-danger {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn-danger:hover {
  background: #e05050;
  border-color: #e05050;
  color: #fff;
}

.btn-outline {
  width: 100%;
  margin-top: 8px;
}

.btn-outline:hover {
  background: #16e16e;
  border-color: #16e16e;
  color: #111;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn-group .btn {
  flex: 1;
}

.btn-icon {
  background: none;
  border: 1px solid #d0d0d0;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Outfit', sans-serif;
  color: #666;
  transition: all 0.15s;
}

.btn-icon:hover {
  border-color: #16e16e;
  color: #16e16e;
}

.remove-btn {
  background: none;
  border: 1px solid #d0d0d0;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Outfit', sans-serif;
  color: #999;
  transition: all 0.15s;
}

.remove-btn:hover {
  border-color: #e05050;
  color: #e05050;
}

.status {
  margin-top: 14px;
  font-size: 13px;
  color: #888;
  text-align: center;
  font-weight: 300;
}

ul {
  list-style: none;
}

li {
  padding: 10px 14px;
  border: 1px solid #eee;
  margin-bottom: 8px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timestamp {
  font-size: 11px;
  color: #aaa;
  font-weight: 300;
}

#registeredList li {
  border-left: 3px solid #16e16e;
}

#blockedList li {
  border-left: 3px solid #ccc;
}

#registeredCard:not(:has(li)),
#blockedCard:not(:has(li)) {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-family: 'Outfit', sans-serif;
}

.modal-content {
  background: #fff;
  border: 1px solid #e0e0e0;
  width: 90%;
  max-width: 520px;
  padding: 28px;
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  padding: 12px;
  font-family: 'Outfit', monospace;
  font-size: 13px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #16e16e;
  box-shadow: 0 0 0 2px rgba(22, 225, 110, 0.15);
}

.hidden {
  display: none !important;
}