/* Admin Memberships Styles */

.admin-memberships {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.admin-memberships h1 {
  margin-bottom: 30px;
  color: #1a1a1a;
}

.admin-memberships h2 {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.grant-permission-form {
  background: #ffffff;
  border: 1px solid #dee2e6;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.current-permissions h2 {
  margin-top: 0;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.permissions-table th,
.permissions-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
  color: #333;
}

.permissions-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

.permissions-table tbody tr:hover {
  background: #f8f9fa;
}

.permissions-table tbody tr:last-child td {
  border-bottom: none;
}

.role-badge {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 5px;
}

.permission-required {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  font-size: 13px;
  font-style: italic;
}

.lock-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.self-protection {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #17a2b8;
  font-size: 13px;
  font-style: italic;
}

.shield-icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Dark Theme */
[data-theme="dark"] .admin-memberships h1,
[data-theme="dark"] .admin-memberships h2 {
  color: #fff;
}

[data-theme="dark"] .grant-permission-form {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .permissions-table {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .permissions-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .permissions-table th,
[data-theme="dark"] .permissions-table td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="dark"] .permissions-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}
