/* === lagadmin.css === */
/* Lagsadministrasjon NVSF */

#lagadmin-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.loading {
  text-align: center;
  color: #555;
  padding: 2rem;
}

/* === Seksjoner === */
.admin-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 1.5rem;
}

.admin-section h2 {
  margin-top: 0;
  color: #004aad;
  border-bottom: 2px solid #e5e9f0;
  padding-bottom: 0.3rem;
}

/* === Team-liste === */
.team-list, .request-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-card, .request-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  border-left: 4px solid #0ea5e9;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: box-shadow .2s ease;
}

.team-card:hover, .request-card:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.team-card.inactive {
  opacity: 0.7;
  border-left-color: #ccc;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.team-body p {
  margin: 0.3rem 0;
}

.team-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #444;
}

/* === Lister for medlemmer === */
.pending-box, .active-box {
  background: #fff;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  border: 1px solid #e5e7eb;
  margin-top: .5rem;
}

.pending-box h4, .active-box h4 {
  margin: 0 0 .5rem 0;
  font-size: 1rem;
}

.pending-list, .member-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pending-list li, .member-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .3rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}

.pending-list li:last-child,
.member-list li:last-child {
  border-bottom: none;
}

.btn-row {
  display: flex;
  gap: .4rem;
}

/* === Knappestiler === */
.ms-btn {
  border: none;
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.ms-btn.primary { background: #0ea5e9; color: #fff; }
.ms-btn.primary:hover { background: #0284c7; }

.ms-btn.danger { background: #dc2626; color: #fff; }
.ms-btn.danger:hover { background: #b91c1c; }

.ms-btn.outline {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #111;
}
.ms-btn.outline:hover {
  background: #f1f5f9;
}

.ms-btn.xs {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

/* === Modal === */
.ms-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ms-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ms-modal-box h3 {
  margin-top: 0;
  color: #004aad;
}

.ms-modal-box form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ms-modal-box input,
.ms-modal-box textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6rem;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* === Responsive === */
@media (max-width: 600px) {
  #lagadmin-container {
    padding: 1rem;
  }
  .team-card, .request-card {
    padding: 0.8rem;
  }
}
