/*
 * Settings Features
 * User profile, team grid, permission matrix
 */

/* User Profile Popover */
.profile-popover {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 16px;
}

.profile-popover-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-popover-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-popover-name {
  font-weight: 600;
  font-size: 16px;
}

.profile-popover-title {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-popover-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-tertiary);
  border-radius: 6px;
  margin-bottom: 12px;
}

.profile-status-emoji {
  font-size: 16px;
}

.profile-status-text {
  font-size: 12px;
}

.profile-popover-details {
  margin-bottom: 16px;
}

.profile-detail {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
}

.profile-detail-label {
  color: var(--text-secondary);
}

.profile-popover-actions {
  display: flex;
  gap: 8px;
}

/* Team Member Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.team-member-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-member-avatar {
  position: relative;
}

.team-member-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-secondary);
}

.team-status-online {
  background-color: #10B981;
}

.team-status-away {
  background-color: #F59E0B;
}

.team-status-offline {
  background-color: var(--text-secondary);
}

.team-member-info {
  text-align: center;
}

.team-member-name {
  display: block;
  font-weight: 500;
  font-size: 14px;
}

.team-member-role {
  font-size: 12px;
  color: var(--text-secondary);
}

.team-member-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.team-badge-admin {
  background-color: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
}

.team-badge-member {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
}

.team-badge-guest {
  background-color: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
}

/* Permission Matrix */
.permission-matrix {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.permission-table {
  width: 100%;
  border-collapse: collapse;
}

.permission-table th,
.permission-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.permission-table th {
  background-color: var(--bg-tertiary);
  font-weight: 500;
  font-size: 12px;
}

.permission-table td {
  font-size: 12px;
}

.permission-table th:not(:first-child),
.permission-table td:not(:first-child) {
  text-align: center;
  width: 100px;
}

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

.permission-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.permission-allowed {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.permission-denied {
  background-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
}

/* Invite Link Card */
.invite-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.invite-card-expired {
  opacity: 0.7;
}

.invite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.invite-title {
  font-weight: 500;
  font-size: 14px;
}

.invite-role {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 2px 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

.invite-link-input {
  flex: 1;
  font-size: 12px;
}

.invite-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.invite-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.invite-expired-notice {
  padding: 12px;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  color: #EF4444;
  font-size: 12px;
}

.text-danger {
  color: #EF4444 !important;
}

