/* My Clinic Layout */
.my-clinic-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.my-clinic-info {
  min-width: 0;
}

.my-clinic-members {
  min-width: 0;
}

/* Detail Card */
.detail-card {
  background: var(--c-app-bg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.detail-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-base-text);
  margin: 0 0 1.25rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--c-base-subtitle-text);
  font-size: 0.875rem;
}

.detail-value {
  color: var(--c-base-text);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Members */
.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.members-header h3 {
  margin: 0;
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #F9FAFB;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.member-item:hover {
  background: #F3F4F6;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-email {
  font-weight: 500;
  color: var(--c-base-text);
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.member-role {
  font-size: 0.8125rem;
  color: var(--c-base-subtitle-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.member-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.member-badge--manager {
  background: var(--c-brand-highlight);
  color: var(--c-brand);
}

.member-badge--hot-login {
  background: rgba(34, 197, 94, 0.1);
  color: var(--c-success);
}

.member-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.member-action-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-base-subtitle-text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.member-action-btn:hover {
  background: var(--c-app-bg);
  border-color: var(--c-base-subtitle-text);
  color: var(--c-base-text);
}

.member-action-btn--danger {
  color: var(--c-error);
  border-color: transparent;
}

.member-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: transparent;
  color: var(--c-error);
}

.members-empty {
  text-align: center;
  padding: 2rem;
  color: var(--c-base-subtitle-text);
}

/* Settings Layout — see flex layout below */

/* Severity Colors */
.severity-colors-grid {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.severity-color-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.severity-color-label {
  font-size: 0.875rem;
  color: var(--c-base-subtitle-text);
  font-weight: 500;
}

.severity-color-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.severity-color-input {
  width: 48px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.severity-color-hex {
  min-width: 0;
  flex: 1;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-family: monospace;
  color: var(--c-base-text);
  text-transform: uppercase;
}

.severity-color-hex:focus {
  outline: none;
  border-color: var(--c-brand);
}

.severity-colors-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Clinic Sections */
.my-clinic-sections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.my-clinic-sections .detail-card .page-subtitle {
  margin: 0 0 1rem 0;
}

/* Welcome message */
.detail-card__description {
  font-size: 0.8125rem;
  color: var(--c-base-subtitle-text);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.welcome-message__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.welcome-message__toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-base-text);
}

.welcome-message__switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.welcome-message__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.welcome-message__slider {
  position: absolute;
  inset: 0;
  background-color: var(--c-border);
  border-radius: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.welcome-message__slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--c-app-bg);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.welcome-message__switch input:checked + .welcome-message__slider {
  background-color: var(--c-brand);
}

.welcome-message__switch input:checked + .welcome-message__slider::before {
  transform: translateX(18px);
}

/* Settings cards layout */
.clinic-settings-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.clinic-settings-layout .detail-card {
  flex: 1;
  min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .my-clinic-layout {
    grid-template-columns: 1fr;
  }
}
