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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  font-size: 14px;
  padding: 12px;
  min-height: 100vh;
}

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

a { color: #7b8cff; text-decoration: none; }
a:hover { text-decoration: underline; }

h1 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 16px;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: #4a6cf7; color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #4a4a6a; color: #b0b0c0; }
.btn-outline:hover { border-color: #4a6cf7; color: #fff; }

.back-btn {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #b0b0c0;
  text-decoration: none;
  font-size: 12px;
  transition: all 0.2s;
}
.back-btn:hover { background: rgba(255,255,255,0.12); color: #fff; text-decoration: none; }

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  color: #b0b0c0;
  font-size: 12px;
  margin-bottom: 4px;
}

.form-input, select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #3a3a50;
  background: #1a1a2e;
  color: #e0e0e0;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, select:focus {
  border-color: #4a6cf7;
}

.card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #2a2a40;
}

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

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #2a2a40;
}

th {
  color: #7b8cff;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

tr:hover { background: rgba(255,255,255,0.03); }

.search-box {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #3a3a50;
  background: #1a1a2e;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.search-box:focus { border-color: #4a6cf7; }

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #2a2a40;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal h2 { color: #fff; margin-bottom: 16px; font-size: 18px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 2000;
  animation: fadeIn 0.3s;
}
.toast-success { background: #10b981; color: #fff; }
.toast-error { background: #ef4444; color: #fff; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.announcement-bar {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  overflow: hidden;
  white-space: nowrap;
  color: #f59e0b;
  font-size: 13px;
}

.loading { text-align: center; padding: 40px; color: #7b8cff; }
.empty { text-align: center; padding: 40px; color: #666; }

@media (max-width: 768px) {
  body { padding: 8px; }
  th, td { padding: 6px 8px; font-size: 12px; }
}
