* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #0b0f17;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
}

.container {
  width: 100%;
  max-width: 920px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.portal-header {
  text-align: center;
  margin-bottom: 35px;
}

.portal-header p {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-top: 6px;
}

.header-badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.portal-header h1 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.school-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.school-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.school-header h3 {
  font-size: 1.05rem;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
}

.school-status {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-open {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.status-closed {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.school-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 22px;
  line-height: 1.45;
}

.btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary {
  background: #0284c7;
  color: #fff;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-secondary {
  background: #334155;
  color: #fff;
}

.btn-secondary:hover {
  background: #475569;
}

.admin-footer {
  margin-top: 35px;
  text-align: center;
}

.admin-btn {
  width: auto;
  display: inline-block;
  padding: 10px 24px;
}

/* Формы и модалка */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 12px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: #38bdf8;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 25px;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
}

.toggle-group {
  margin: 12px 0;
}
