/* ============================================================================
 * MODERATOR ADMIN PANEL - DRAWER STYLE LAYOUT
 * ============================================================================
 *
 * Full-page drawer-style admin panel for group moderators
 * Follows stylesheetguide.md Drawer Style Layout [LOCKED]
 *
 * FEATURE COLOR: #1E90FF (DodgerBlue - Groups/Community)
 *
 * ============================================================================ */

/* Full-Page Drawer Panel */
.moderator-admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF; /* White page background */
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10002;
}

.moderator-admin-panel[aria-hidden="false"] {
  display: flex;
}

/* Fixed Close Button (Chevron Left, NOT X) */
.moderator-admin-panel .close-button {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #DCDCDC;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease-in-out;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10003;
  font-size: 24px;
  color: #696969;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.moderator-admin-panel .close-button:hover {
  background: #D3D3D3;
}

/* Fixed Help Button (?) */
.moderator-admin-panel .help-button {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #DCDCDC;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease-in-out;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10003;
  font-size: 18px;
  color: #696969;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.moderator-admin-panel .help-button:hover {
  background: #D3D3D3;
}

/* Scrollable Content Area */
.moderator-admin-panel .drawer-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #FFFFFF;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 80px 10px 60px 10px; /* Top padding for fixed buttons */
}

/* ============================================================================
 * SECTION 1: COVER PHOTO (Editable)
 * ============================================================================ */

.admin-cover-photo-section {
  position: relative;
  width: calc(100% - 40px); /* ACT 1 STANDARD: 20px each side */
  margin: 0 20px 24px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
}

.admin-cover-photo-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-cover-edit-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #D3D3D3;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: #4682B4;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-cover-edit-chip:hover {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
 * SECTION 2: GROUP TITLE (Static)
 * ============================================================================ */

.admin-group-title {
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 20px 24px; /* ACT 1 STANDARD: 20px horizontal */
  text-align: center;
  letter-spacing: -0.5px;
}

/* ============================================================================
 * SECTION 3 & 4: GLANCEABLE BUTTONS (Members & Applications)
 * ============================================================================ */

.admin-glanceable-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  background: #F5F5F5;
  margin: 0 20px 16px; /* ACT 1 STANDARD: 20px horizontal */
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #D3D3D3;
  box-shadow: -4px 4px 0px 0px #1E90FF; /* Blue shadow for Groups */
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-glanceable-btn:active {
  transform: translateY(1px);
  box-shadow: -2px 2px 0px 0px #1E90FF;
}

.admin-glanceable-btn-label {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.admin-glanceable-btn-count {
  font-size: 28px;
  font-weight: 800;
  color: #4682B4; /* Steel blue */
}

/* ============================================================================
 * SECTION 5: INVITE CODE (In-Place Widget)
 * ============================================================================ */

.admin-invite-section {
  background: #F5F5F5;
  margin: 24px 20px; /* ACT 1 STANDARD */
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid #D3D3D3;
  box-shadow: -4px 4px 0px 0px #1E90FF;
}

.admin-invite-section h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 16px;
  text-align: center;
}

.admin-invite-generate-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  background: #FFFFFF;
  border: 2px solid #4682B4;
  border-radius: 12px;
  color: #4682B4;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-invite-generate-btn:active {
  background: #4682B4;
  color: #FFFFFF;
}

.admin-invite-code-display {
  display: none;
  text-align: center;
}

.admin-invite-code-value {
  font-size: 32px;
  font-weight: 800;
  color: #1E90FF;
  letter-spacing: 2px;
  margin: 0 0 8px;
}

.admin-invite-code-expiry {
  font-size: 12px;
  color: #6B7280;
  margin: 0 0 16px;
}

.admin-invite-code-actions {
  display: flex;
  gap: 12px;
}

.admin-invite-code-actions button {
  flex: 1;
  padding: 10px 16px;
  min-height: 42px;
  background: #FFFFFF;
  border: 2px solid #4682B4;
  border-radius: 12px;
  color: #4682B4;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-invite-code-actions button:active {
  background: #4682B4;
  color: #FFFFFF;
}

/* ============================================================================
 * SECTION 6: GO TO NOTICEBOARD BUTTON
 * ============================================================================ */

.admin-noticeboard-btn {
  display: block;
  width: calc(100% - 40px); /* ACT 1 STANDARD: 20px each side */
  margin: 24px 20px;
  padding: 12px 16px;
  min-height: 48px;
  background: #FFFFFF;
  border: 2px solid #4682B4;
  border-radius: 12px;
  color: #4682B4;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-noticeboard-btn:active {
  background: #4682B4;
  color: #FFFFFF;
}

/* ============================================================================
 * SECTION 7: GROUP DETAILS (Edit-in-Place)
 * ============================================================================ */

.admin-details-section {
  background: #F5F5F5;
  margin: 24px 20px; /* ACT 1 STANDARD */
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid #D3D3D3;
  box-shadow: -4px 4px 0px 0px #1E90FF;
}

.admin-details-section h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 16px;
  text-align: center;
}

/* Read View */
.admin-details-read {
  display: block;
}

.admin-details-row {
  margin-bottom: 16px;
}

.admin-details-row:last-child {
  margin-bottom: 0;
}

.admin-details-label {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}

.admin-details-value {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.admin-details-edit-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  min-height: 42px;
  background: #FFFFFF;
  border: 2px solid #4682B4;
  border-radius: 12px;
  color: #4682B4;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-details-edit-btn:active {
  background: #4682B4;
  color: #FFFFFF;
}

/* Edit View */
.admin-details-edit {
  display: none;
}

.admin-details-form-group {
  margin-bottom: 16px;
}

.admin-details-form-group:last-of-type {
  margin-bottom: 0;
}

.admin-details-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.admin-details-form-group textarea,
.admin-details-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D3D3D3;
  border-radius: 8px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: #1f2937;
  background: #FFFFFF;
  resize: vertical;
  min-height: 80px;
}

.admin-details-form-group select {
  min-height: 42px;
  cursor: pointer;
}

.admin-details-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.admin-details-form-actions button {
  flex: 1;
  padding: 10px 16px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  border: 2px solid;
}

.admin-details-save-btn {
  background: #4682B4;
  border-color: #4682B4;
  color: #FFFFFF;
}

.admin-details-save-btn:active {
  background: #3A6F96;
  border-color: #3A6F96;
}

.admin-details-cancel-btn {
  background: #FFFFFF;
  border-color: #D3D3D3;
  color: #6B7280;
}

.admin-details-cancel-btn:active {
  background: #F5F5F5;
}

/* ============================================================================
 * SECTION 8: PLACEHOLDER (View Reported Content)
 * ============================================================================ */

.admin-placeholder-btn {
  display: block;
  width: calc(100% - 40px); /* ACT 1 STANDARD: 20px each side */
  margin: 24px 20px;
  padding: 12px 16px;
  min-height: 48px;
  background: #F5F5F5;
  border: 2px solid #D3D3D3;
  border-radius: 12px;
  color: #9CA3AF;
  font-size: 16px;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ============================================================================
 * SECTION 9: DANGER ZONE (Delete Group)
 * ============================================================================ */

.admin-danger-zone {
  background: #FFF5F5; /* Light red background */
  margin: 24px 20px; /* ACT 1 STANDARD */
  padding: 24px 20px;
  border-radius: 12px;
  border: 2px solid #DC143C; /* Crimson border */
}

.admin-danger-zone h3 {
  font-size: 18px;
  font-weight: 800;
  color: #DC143C;
  margin: 0 0 12px;
  text-align: center;
}

.admin-danger-zone p {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 16px;
  text-align: center;
  line-height: 1.5;
}

.admin-delete-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  background: #FFFFFF;
  border: 2px solid #DC143C;
  border-radius: 12px;
  color: #DC143C;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}

.admin-delete-btn:active {
  background: #DC143C;
  color: #FFFFFF;
}
