/**
 * SimpleCommenter Admin Styles
 * Design matching SimpleCommenter dashboard
 */

/* WordPress admin menu icon styling - prevent WP from converting to white */
body.wp-admin #adminmenu .toplevel_page_simple-commenter .wp-menu-image img,
body.wp-admin
  #adminmenu
  .toplevel_page_simple-commenter:hover
  .wp-menu-image
  img,
body.wp-admin
  #adminmenu
  .toplevel_page_simple-commenter:focus
  .wp-menu-image
  img,
body.wp-admin
  #adminmenu
  .toplevel_page_simple-commenter.current
  .wp-menu-image
  img,
body.wp-admin
  #adminmenu
  .toplevel_page_simple-commenter.wp-has-current-submenu
  .wp-menu-image
  img,
body.wp-admin
  #adminmenu
  .toplevel_page_simple-commenter.opensub
  .wp-menu-image
  img,
body.wp-admin
  #adminmenu
  .toplevel_page_simple-commenter
  .wp-menu-image
  img[style] {
  width: 20px !important;
  height: 20px !important;
  padding: 7px 0 0 0 !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  /* Explicitly disable all filter functions WordPress might use */
  filter: brightness(1) saturate(1) invert(0) !important;
}

/* Base styles */
.sc-admin {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.sc-admin * {
  box-sizing: border-box;
}

/* Page header */
.sc-page-header {
  margin-bottom: 24px;
  overflow: visible;
}

.sc-page-header h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #222222;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  overflow: visible;
}

.sc-page-header h1 svg {
  color: #222222;
  flex-shrink: 0;
  width: 32px;
  height: 28px;
}

.sc-page-header p {
  margin: 0;
  font-size: 14px;
  color: #7e7e7e;
}

/* Account header bar */
.sc-account-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
  margin-bottom: 24px;
}

.sc-account-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sc-account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sc-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #222222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.sc-account-details {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sc-account-name {
  font-size: 14px;
  font-weight: 500;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
}

.sc-tier-trial {
  background: #fef3c7;
  color: #92400e;
}

.sc-tier-pro {
  background: #dbeafe;
  color: #1e40af;
}

.sc-tier-business {
  background: #d1fae5;
  color: #065f46;
}

.sc-tier-expired {
  background: #fee2e2;
  color: #991b1b;
}

.sc-role-badge {
  font-size: 12px;
  color: #7e7e7e;
}

/* Status badge in header */
.sc-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
}

.sc-status-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.sc-status-badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.sc-status-badge-error {
  background: #fee2e2;
  color: #991b1b;
}

/* WordPress User Bar */
.sc-wp-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
}

.sc-wp-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-wp-user-label {
  font-size: 13px;
  color: #626262;
}

.sc-wp-user-email {
  font-size: 13px;
  color: #222222;
}

.sc-wp-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}

.sc-sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 9999px;
}

.sc-sync-status-badge svg {
  width: 12px;
  height: 12px;
}

.sc-sync-status-synced {
  background: #d1fae5;
  color: #065f46;
}

.sc-sync-status-not-synced {
  background: #fef3c7;
  color: #92400e;
}

.sc-wp-user-actions {
  flex-shrink: 0;
}

.sc-account-bar-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #e1e1e1;
}

.sc-dashboard-hint {
  margin: 0;
  font-size: 13px;
  color: #626262;
  flex: 1;
  line-height: 1.4;
}

/* Cards */
.sc-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.sc-card h2 {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 4px 0;
  padding: 0;
}

.sc-card > p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #7e7e7e;
}

.sc-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  margin: 20px 0 12px 0;
}

.sc-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #515151;
  margin: 0 0 12px 0;
}

/* Connect card */
.sc-connect-card {
  max-width: 440px;
  margin: 40px auto;
}

/* Connect header */
.sc-connect-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.sc-connect-header svg {
  width: 48px;
  height: 42px;
  flex-shrink: 0;
}

.sc-connect-header-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  letter-spacing: -0.025em;
}

.sc-connect-header-text p {
  margin: 2px 0 0 0;
  font-size: 14px;
  color: #7e7e7e;
}

/* Connect status indicator */
.sc-connect-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #e1e1e1;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  margin-bottom: 20px;
}

.sc-connect-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b1b1b1;
}

/* Connect features list */
.sc-connect-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.sc-connect-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #515151;
}

.sc-connect-feature svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #10b981;
}

/* WordPress Exclusive feature item */
.sc-connect-feature.sc-wordpress-feature {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e1e1e1;
}

.sc-connect-feature.sc-wordpress-feature svg {
  color: #0073aa;
}

/* Connect note */
.sc-connect-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f9ff;
  border-radius: 8px;
  font-size: 13px;
  color: #0369a1;
  margin-bottom: 20px;
}

.sc-connect-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Connect separator */
.sc-connect-separator {
  height: 1px;
  background: #cfcfcf;
  margin: 24px 0;
}

/* Connect account heading */
.sc-connect-card > h2 {
  margin-bottom: 16px;
}

/* Tabs */
.sc-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #cfcfcf;
}

.sc-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #7e7e7e;
  margin-bottom: -1px;
  transition: all 0.15s ease;
}

.sc-tab:hover {
  color: #222222;
}

.sc-tab.active {
  color: #222222;
  border-bottom-color: #222222;
}

.sc-tab-content {
  padding-top: 8px;
}

/* Form fields */
.sc-field {
  margin-bottom: 16px;
}

.sc-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #515151;
  margin-bottom: 6px;
}

.sc-field input[type="text"],
.sc-field input[type="password"],
.sc-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #222222;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  transition: all 0.15s ease;
}

.sc-field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #222222;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  transition: all 0.15s ease;
}

.sc-field input[type="text"]:focus,
.sc-field input[type="password"]:focus,
.sc-field select:focus {
  outline: 2px solid #222222;
  outline-offset: -1px;
  background: #fff;
}

.sc-field input[type="email"]:focus {
  outline: 2px solid #222222;
  outline-offset: -1px;
}

/* Inline code style */
.sc-inline-code,
code.sc-inline-code {
  display: inline;
  padding: 2px 6px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  background: #e1e1e1;
  border-radius: 4px;
  color: #515151;
}

.sc-field input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 0;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
}

.sc-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.sc-field input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 8px;
}

.sc-field input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 8px;
}

.sc-field .description {
  margin-top: 6px;
  font-size: 13px;
  color: #7e7e7e;
}

.sc-field-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sc-field-row .sc-field {
  flex: 1;
  min-width: 120px;
}

/* Toggle fields */
.sc-toggle label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.sc-toggle input[type="checkbox"] {
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #222222;
}

/* Settings sections */
.sc-settings-section {
  padding: 20px 0;
  border-bottom: 1px solid #e1e1e1;
}

.sc-settings-section:first-child {
  padding-top: 0;
}

.sc-settings-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* Features grid */
.sc-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sc-features-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #515151;
  transition: all 0.15s ease;
}

.sc-features-grid label:hover {
  background: #e1e1e1;
}

.sc-features-grid input[type="checkbox"] {
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #222222;
}

/* Roles grid */
.sc-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.sc-roles-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #515151;
  transition: all 0.15s ease;
}

.sc-roles-grid label:hover {
  background: #e1e1e1;
}

.sc-roles-grid input[type="checkbox"] {
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #222222;
}

.sc-roles-grid input[type="checkbox"]:disabled {
  opacity: 0.7;
}

.sc-required {
  font-size: 11px;
  color: #7e7e7e;
  font-weight: 400;
}

/* Members list */
.sc-members-list {
  margin-bottom: 20px;
}

.sc-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
}

.sc-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-member-name {
  font-weight: 500;
  color: #222222;
  font-size: 14px;
}

.sc-member-email {
  color: #7e7e7e;
  font-size: 13px;
}

.sc-member-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-member-role {
  font-size: 12px;
  padding: 4px 8px;
  background: #cfcfcf;
  border-radius: 4px;
  color: #515151;
  text-transform: capitalize;
}

.sc-member-role.owner {
  background: #dbeafe;
  color: #1d4ed8;
}

.sc-member-remove {
  background: none;
  border: none;
  color: #9e9e9e;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.sc-member-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Buttons - Primary (black) */
.sc-admin .button.button-primary,
.sc-admin .sc-btn-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  line-height: 1 !important;
  background: #222222 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease !important;
}

.sc-admin .button.button-primary:hover,
.sc-admin .sc-btn-primary:hover {
  background: #3b3b3b !important;
}

.sc-admin .button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Buttons - Secondary */
.sc-admin .button:not(.button-primary),
.sc-admin .sc-btn-secondary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  line-height: 1 !important;
  background: #fff !important;
  color: #515151 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1) !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease !important;
}

.sc-admin .button:not(.button-primary):hover,
.sc-admin .sc-btn-secondary:hover {
  background: #e1e1e1 !important;
}

/* Small buttons */
.sc-admin .button-small {
  padding: 6px 12px !important;
  font-size: 13px !important;
}

/* Icon buttons */
.sc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #7e7e7e;
}

.sc-icon-btn:hover {
  background: #e1e1e1;
  color: #222222;
}

.sc-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Disconnect button */
.sc-disconnect-btn {
  color: #dc2626 !important;
  box-shadow: inset 0 0 0 1px #fca5a5 !important;
}

.sc-disconnect-btn:hover {
  background: #fef2f2 !important;
}

/* Small disconnect button (in header) */
.sc-disconnect-btn-small {
  color: #7e7e7e !important;
  box-shadow: inset 0 0 0 1px #cfcfcf !important;
  background: transparent !important;
}

.sc-disconnect-btn-small:hover {
  color: #dc2626 !important;
  box-shadow: inset 0 0 0 1px #fca5a5 !important;
  background: #fef2f2 !important;
}

/* Banners */
.sc-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.sc-banner svg {
  flex-shrink: 0;
}

.sc-banner span {
  flex: 1;
}

.sc-banner .button {
  flex-shrink: 0;
  margin-left: auto;
}

.sc-banner-success {
  background: #d1fae5;
  color: #065f46;
}

.sc-banner-warning {
  background: #fef3c7;
  color: #92400e;
}

.sc-banner-error {
  background: #fee2e2;
  color: #991b1b;
}

.sc-banner a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.sc-banner code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Domain mismatch badge */
.sc-domain-mismatch-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 4px;
  vertical-align: middle;
}

/* Info text */
.sc-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #eff6ff;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 13px;
  color: #1e40af;
}

.sc-info svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.sc-info-small {
  font-size: 12px;
  padding: 10px 12px;
}

.sc-info-small svg {
  width: 14px;
  height: 14px;
}

.sc-trial-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px;
  background: #fef3c7;
  border-radius: 8px;
  color: #92400e;
  font-size: 14px;
}

/* Error messages */
.sc-error {
  padding: 12px 16px;
  background: #fee2e2;
  border-radius: 8px;
  color: #991b1b;
  margin-top: 16px;
  font-size: 14px;
}

/* Global alert (shown at top) */
.sc-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.sc-alert-success {
  background: #d1fae5;
  color: #065f46;
}

.sc-alert-warning {
  background: #fef3c7;
  color: #92400e;
}

/* Loading state */
.sc-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  color: #7e7e7e;
  font-size: 14px;
}

.sc-loading .spinner {
  float: none;
  margin: 0;
}

/* Loading overlay for containers */
.sc-loading-overlay {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

/* Selecting loader for domain selection */
.sc-selecting-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: 16px;
  background: #e1e1e1;
  border-radius: 8px;
  color: #515151;
  font-size: 14px;
}

.sc-selecting-loader .spinner {
  float: none;
  margin: 0;
}

/* Member removing state */
.sc-member-item.sc-removing {
  opacity: 0.5;
  pointer-events: none;
}

/* Domain list */
.sc-domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-domain-list li {
  margin-bottom: 8px;
}

.sc-select-domain {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #f7f7f7;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.sc-select-domain:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #222222;
}

.sc-select-domain.sc-domain-match {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #3b82f6;
}

.sc-select-domain.sc-domain-match:hover {
  background: #dbeafe;
}

.sc-select-domain strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 4px;
}

.sc-select-domain span {
  font-size: 13px;
  color: #7e7e7e;
}

.sc-select-domain .sc-match-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  background: #3b82f6;
  color: #fff;
  border-radius: 4px;
  vertical-align: middle;
}

/* OR divider */
.sc-or-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #9e9e9e;
}

.sc-or-divider::before,
.sc-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfcfcf;
}

.sc-or-divider span {
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Status card */
.sc-status-card {
  padding: 16px 20px;
}

.sc-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sc-status-header h3 {
  margin: 0;
  font-size: 14px;
}

.sc-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.sc-status-success {
  background: #d1fae5;
  color: #065f46;
}

.sc-status-warning {
  background: #fef3c7;
  color: #92400e;
}

.sc-status-error {
  background: #fee2e2;
  color: #991b1b;
}

/* Code blocks */
.sc-card code {
  background: #e1e1e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  word-break: break-all;
  color: #515151;
}

.sc-embed-code {
  margin: 12px 0 0 0;
  padding-top: 12px;
  border-top: 1px solid #e1e1e1;
  font-size: 12px;
  color: #7e7e7e;
}

.sc-embed-code code {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  background: #f7f7f7;
  font-size: 11px;
  line-height: 1.4;
}

/* Google login button */
.sc-google-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  width: 100% !important;
  padding: 10px 16px !important;
  background: #222222 !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #fff !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.sc-google-btn:hover,
.sc-google-btn:focus,
.sc-google-btn:active {
  text-decoration: none !important;
  color: #fff !important;
}

.sc-google-btn:hover {
  background: #3b3b3b !important;
}

.sc-google-btn svg {
  width: 18px;
  height: 18px;
}

/* Divider with text */
.sc-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #9e9e9e;
  font-size: 13px;
}

.sc-divider::before,
.sc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfcfcf;
}

.sc-divider span {
  padding: 0 12px;
}

/* Project header */
.sc-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.sc-project-info h2 {
  font-size: 16px;
  font-weight: 600;
  color: #222222;
  margin: 0 0 4px 0;
  padding: 0;
}

.sc-project-info code {
  background: #e1e1e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #7e7e7e;
}

/* Project actions (Change Project + Disconnect) at bottom */
.sc-project-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 12px;
}

/* Settings tabs */
.sc-settings-card {
  padding: 0;
  overflow: hidden;
}

.sc-settings-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
}

.sc-settings-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.sc-settings-tab:hover {
  color: #515151;
  background: rgba(255, 255, 255, 0.5);
}

.sc-settings-tab.active {
  color: #222222;
  background: #f7f7f7;
  border-bottom-color: #222222;
}

.sc-settings-tab-content {
  padding: 24px;
  background: #f7f7f7;
}

.sc-settings-actions {
  padding-top: 16px;
}

/* Field row with 3 columns */
.sc-field-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.sc-field-row-3 .sc-field {
  margin-bottom: 0;
}

/* Field row with 2 columns */
.sc-field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.sc-field-row-2 .sc-field {
  margin-bottom: 0;
}

/* WordPress User Sync Box */
.sc-sync-box {
  padding-bottom: 20px;
  background: #f7f7f7;
  border-radius: 10px;
  border-bottom: 1px solid #e1e1e1;
}

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

.sc-sync-header .sc-toggle {
  margin-bottom: 0;
}

.sc-sync-box > .description {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #7e7e7e;
}

/* Role mapping box */
.sc-role-mapping-box {
  padding: 12px;
  background: white;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid #e1e1e1;
}

.sc-role-mapping-title {
  display: block;
  font-weight: 500;
  color: #515151;
  margin-bottom: 8px;
}

.sc-role-mapping-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-role-mapping-list li {
  margin-bottom: 4px;
  color: #7e7e7e;
}

.sc-role-mapping-list li:last-child {
  margin-bottom: 0;
}

.sc-role-mapping-list strong {
  color: #515151;
  font-weight: 500;
}

/* Sync actions */
.sc-sync-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}

.sc-sync-status {
  font-size: 13px;
  color: #7e7e7e;
}

.sc-sync-status.success {
  color: #059669;
}

.sc-sync-status.error {
  color: #dc2626;
}

/* Client item styles */
.sc-client-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
}

.sc-client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-client-name {
  font-weight: 500;
  color: #222222;
  font-size: 14px;
}

.sc-client-email {
  color: #7e7e7e;
  font-size: 13px;
}

.sc-client-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-client-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
}

.sc-client-status.approved {
  background: #d1fae5;
  color: #065f46;
}

.sc-client-status.pending {
  background: #fef3c7;
  color: #92400e;
}

/* Actions row */
.sc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 600px) {
  .sc-admin {
    padding: 16px 12px;
  }

  .sc-account-bar-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sc-account-bar-dashboard {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sc-account-bar-dashboard .button {
    text-align: center;
  }

  .sc-field-row,
  .sc-field-row-2,
  .sc-field-row-3 {
    grid-template-columns: 1fr;
  }

  .sc-features-grid {
    grid-template-columns: 1fr;
  }

  .sc-roles-grid {
    grid-template-columns: 1fr;
  }

  .sc-actions {
    flex-direction: column;
  }

  .sc-actions .button {
    width: 100%;
    text-align: center;
  }

  .sc-project-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-status-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .sc-settings-tabs {
    flex-direction: column;
  }

  .sc-settings-tab {
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .sc-settings-tab.active {
    border-left-color: #222222;
  }
}

/* Login method tabs */
.sc-login-methods {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 4px;
}

.sc-login-method {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sc-login-method:hover {
  color: #515151;
}

.sc-login-method.active {
  background: #fff;
  color: #222222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Code login styles */
.sc-login-method-content {
  margin-top: 8px;
}

.sc-code-sent-message {
  margin: 0 0 16px 0;
  padding: 12px 14px;
  background: #d1fae5;
  border-radius: 8px;
  font-size: 14px;
  color: #065f46;
}

.sc-code-sent-message strong {
  display: block;
  margin-top: 4px;
  color: #047857;
}

.sc-code-input {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace !important;
  font-size: 24px !important;
  letter-spacing: 8px !important;
  text-align: center !important;
  padding: 16px 12px !important;
  max-width: 200px !important;
}

.sc-code-input::placeholder {
  color: #b1b1b1;
  letter-spacing: 8px;
}

.sc-code-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.sc-code-expiry {
  margin-top: 0 !important;
  color: #9e9e9e !important;
  font-size: 12px !important;
}

/* Register method tabs (reuse login method styles) */
.sc-register-method {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sc-register-method:hover {
  color: #515151;
}

.sc-register-method.active {
  background: #fff;
  color: #222222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-register-method-content {
  margin-top: 8px;
}

/* ============================================
   COMMENTS SECTION STYLES
   ============================================ */

/* Comments filters container */
.sc-comments-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* Filter rows */
.sc-filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

/* Row 2: Dropdown filters */
.sc-filter-row-dropdowns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Separator between filters and comments */
.sc-filters-separator {
  height: 1px;
  background: #e1e1e1;
  margin-top: 20px;
}

/* Status tabs */
.sc-status-tabs {
  display: flex;
  gap: 0;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  flex-wrap: wrap;
}

.sc-status-tab {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sc-status-tab:hover {
  color: #515151;
}

.sc-status-tab.active {
  background: #fff;
  color: #222222;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.sc-status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.sc-status-tab.active .sc-status-count {
  background: #222222;
  color: #fff;
}

/* Filter dropdowns */
.sc-admin select.sc-filter-select {
  padding: 0 24px 0 8px;
  font-size: 13px;
  color: #515151;
  background: #f9fafb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e7e7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 120px;
  line-height: normal;
  height: auto;
  margin: 0;
  box-shadow: none;
}

.sc-admin select.sc-filter-select:focus {
  outline: 2px solid #222222;
  outline-offset: -1px;
}

/* Comments list */
.sc-comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sc-comments-empty {
  padding: 40px 20px;
  text-align: center;
  color: #7e7e7e;
  font-size: 14px;
  background: #f7f7f7;
  border-radius: 12px;
}

.sc-comments-empty svg {
  display: block;
  margin: 0 auto 12px;
  color: #b1b1b1;
}

/* Comment card */
.sc-comment-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.05);
  overflow: hidden;
  margin-top: 20px;
}

.sc-comment-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
}

/* Comment number badge */
.sc-comment-number {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #e1e1e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
}

/* Comment priority badge - light colors like dashboard */
.sc-comment-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  position: relative;
}

/* Priority colors matching dashboard (light backgrounds) */
.sc-comment-priority.urgent {
  background: #fef2f2;
  color: #dc2626;
}

.sc-comment-priority.high {
  background: #fef2f2;
  color: #f87171;
}

.sc-comment-priority.normal {
  background: #eff6ff;
  color: #60a5fa;
}

.sc-comment-priority.low {
  background: #f7f7f7;
  color: #9e9e9e;
}

/* Comment slug badge */
.sc-comment-slug {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 12px;
  color: #7e7e7e;
  margin-left: auto;
}

.sc-comment-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sc-comment-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-comment-author-email {
  font-size: 13px;
  color: #7e7e7e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-comment-date {
  font-size: 12px;
  color: #9e9e9e;
  white-space: nowrap;
}

.sc-comment-content {
  padding: 20px;
}

.sc-comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: #515151;
  margin: 0 0 16px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.sc-comment-text:last-child {
  margin-bottom: 0;
}

/* Screenshot */
.sc-comment-screenshot {
  margin-bottom: 16px;
}

.sc-comment-screenshot img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  border: 1px solid #cfcfcf;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.sc-comment-screenshot img:hover {
  opacity: 0.9;
}

/* Attachments */
.sc-comment-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.sc-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #e1e1e1;
  border-radius: 6px;
  font-size: 13px;
  color: #515151;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sc-attachment:hover {
  background: #cfcfcf;
  color: #222222;
}

.sc-attachment svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sc-attachment-size {
  color: #9e9e9e;
  font-size: 11px;
}

/* Comment footer - meta and actions combined */
.sc-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
}

/* Comment meta */
.sc-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #7e7e7e;
}

.sc-comment-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sc-comment-meta-item svg {
  width: 14px;
  height: 14px;
}

.sc-comment-meta-item a {
  color: #3b82f6;
  text-decoration: none;
}

.sc-comment-meta-item a:hover {
  text-decoration: underline;
}

/* Comment actions */
.sc-comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-comment-actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-action-select {
  padding: 6px 28px 6px 10px;
  font-size: 12px;
  color: #515151;
  background: #f7f7f7
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237e7e7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #e1e1e1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.sc-action-select:focus {
  outline: 2px solid #222222;
  outline-offset: -1px;
}

/* View button */
.sc-admin .sc-view-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #515151;
  background: #f0f0f1;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}

.sc-admin .sc-view-btn:hover {
  background: #e2e2e3;
  color: #1d2327;
  text-decoration: none;
}

/* Status dropdown with colored dot */
.sc-admin select.sc-status-select {
  padding: 0 24px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #515151;
  background: #f9fafb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e7e7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}

.sc-admin select.sc-status-select:focus {
  outline: 2px solid #222222;
  outline-offset: -1px;
}

/* Priority dropdown in actions */
.sc-admin select.sc-priority-select {
  padding: 0 24px 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #515151;
  background: #f9fafb
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e7e7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  border: 1px solid #f3f4f6;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.sc-admin select.sc-priority-select:focus {
  outline: 2px solid #222222;
  outline-offset: -1px;
}

.sc-reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  font-size: 12px;
  font-weight: 500;
  color: #515151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-reply-toggle:hover {
  background: #e1e1e1;
}

.sc-reply-toggle svg {
  width: 14px;
  height: 14px;
}

/* Replies section - inside content */
.sc-comment-replies {
  margin-top: 16px;
}

/* Toggle replies button */
.sc-toggle-replies {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #fafafa;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  border-radius: 8px;
}

.sc-toggle-replies:hover {
  background: #e1e1e1;
  color: #515151;
}

.sc-toggle-replies::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}

.sc-toggle-replies.expanded::before {
  transform: rotate(90deg);
}

.sc-replies-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sc-replies-header:hover {
  background: #e1e1e1;
}

.sc-replies-header svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.sc-replies-header.expanded svg {
  transform: rotate(180deg);
}

.sc-replies-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #cfcfcf;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.sc-replies-list {
  padding: 16px 0px;
  background: #fff;
}

.sc-replies-list.hidden {
  display: none;
}

/* Individual reply */
.sc-reply {
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 10px;
  margin-bottom: 12px;
}

.sc-reply:last-of-type {
  margin-bottom: 16px;
}

.sc-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.sc-reply-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #222222;
}

.sc-reply-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #222222;
}

.sc-reply-role {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
}

.sc-reply-role.team {
  background: #dbeafe;
  color: #1e40af;
}

.sc-reply-role.client {
  background: #d1fae5;
  color: #065f46;
}

.sc-reply-role.guest {
  background: #e1e1e1;
  color: #7e7e7e;
}

.sc-reply-date {
  font-size: 11px;
  color: #9e9e9e;
}

.sc-reply-text {
  font-size: 13px;
  line-height: 1.5;
  color: #515151;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.sc-reply-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sc-reply-attachment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #cfcfcf;
  border-radius: 4px;
  font-size: 11px;
  color: #515151;
  text-decoration: none;
}

.sc-reply-attachment:hover {
  background: #b1b1b1;
  color: #222222;
}

/* Reply form */
.sc-reply-form {
  padding: 0;
  background: transparent;
  border-top: none;
  margin-top: 4px;
}

.sc-reply-form.hidden {
  display: none;
}

/* Reply textarea - both class names for compatibility */
.sc-reply-textarea,
textarea.sc-reply-text {
  width: 100%;
  min-height: 80px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  color: #222222;
  background: #f7f7f7;
  border: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  resize: vertical;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.sc-reply-textarea:focus,
textarea.sc-reply-text:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #222222;
}

.sc-reply-textarea::placeholder,
textarea.sc-reply-text::placeholder {
  color: #9e9e9e;
}

.sc-reply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Reply actions row */
.sc-reply-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* File upload */
.sc-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  font-size: 13px;
  color: #7e7e7e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-file-upload:hover {
  background: #f7f7f7;
  color: #515151;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.2);
}

.sc-file-input,
.sc-reply-file {
  display: none;
}

.sc-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  font-size: 13px;
  color: #7e7e7e;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-file-label:hover {
  background: #f7f7f7;
  color: #515151;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.2);
}

.sc-file-label svg {
  width: 14px;
  height: 14px;
}

.sc-file-name {
  font-size: 12px;
  color: #515151;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-file-remove {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #9e9e9e;
  display: flex;
  align-items: center;
}

.sc-file-remove:hover {
  color: #dc2626;
}

.sc-file-remove svg {
  width: 14px;
  height: 14px;
}

.sc-file-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #515151;
  margin-left: 8px;
  max-width: 200px;
}

.sc-file-indicator-icon {
  flex-shrink: 0;
}

.sc-file-indicator-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-file-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 4px;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  color: #9e9e9e;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.sc-file-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.sc-submit-reply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #222222;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-submit-reply:hover {
  background: #3b3b3b;
}

.sc-submit-reply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sc-submit-reply svg {
  width: 14px;
  height: 14px;
}

/* Pagination */
.sc-comments-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 10px;
}

.sc-pagination-info {
  font-size: 13px;
  color: #7e7e7e;
}

.sc-load-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: #515151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-load-more:hover {
  background: #e1e1e1;
}

.sc-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status color indicators */
.sc-status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.sc-status-indicator.open {
  background: #fbbf24;
}

.sc-status-indicator.in-progress {
  background: #3b82f6;
}

.sc-status-indicator.resolved {
  background: #10b981;
}

.sc-status-indicator.closed {
  background: #7e7e7e;
}

/* Priority badges */
.sc-priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sc-priority-badge.low {
  background: #e1e1e1;
  color: #7e7e7e;
}

.sc-priority-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.sc-priority-badge.high {
  background: #fee2e2;
  color: #991b1b;
}

.sc-priority-badge.urgent {
  background: #dc2626;
  color: #fff;
}

/* Comments loading state */
.sc-comments-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  color: #7e7e7e;
  font-size: 14px;
}

/* Responsive adjustments for comments */
@media (max-width: 600px) {
  .sc-status-tabs {
    flex-direction: column;
    gap: 4px;
  }

  .sc-status-tab {
    justify-content: space-between;
  }

  .sc-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-filter-select {
    width: 100%;
  }

  .sc-comment-header {
    flex-direction: column;
    gap: 8px;
  }

  .sc-comment-actions {
    flex-direction: column;
    gap: 10px;
  }

  .sc-comment-actions-left {
    width: 100%;
    justify-content: space-between;
  }

  .sc-reply-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sc-file-upload {
    margin-bottom: 12px;
  }

  .sc-submit-reply {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   WORDPRESS USER BADGE
   ============================================ */

/* WordPress user badge - shows when member/client matches a WP user */
.sc-wp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
  vertical-align: middle;
}

/* Sync errors list */
.sc-sync-errors {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 13px;
}

.sc-sync-errors strong {
  display: block;
  margin-bottom: 8px;
  color: #7f1d1d;
}

.sc-sync-errors ul {
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc;
}

.sc-sync-errors li {
  margin-bottom: 4px;
  word-break: break-word;
}

.sc-sync-errors li:last-child {
  margin-bottom: 0;
}

/* ============================================
   ACCESS CONTROL OPTIONS
   ============================================ */

.sc-access-option {
  padding: 16px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
}

.sc-access-option:last-of-type {
  margin-bottom: 16px;
}

.sc-access-option-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sc-access-option-header strong {
  font-size: 14px;
  font-weight: 600;
  color: #222222;
}

.sc-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.sc-toggle-label input[type="checkbox"] {
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
}

.sc-access-option-desc {
  margin: 0;
  font-size: 13px;
  color: #7e7e7e;
  line-height: 1.4;
}

/* Settings links (Change Project, Disconnect) */
.sc-settings-section-actions {
  border-bottom: none;
}

.sc-settings-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sc-settings-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #515151;
}

.sc-settings-link:first-child {
  border-radius: 10px 10px 0 0;
}

.sc-settings-link:last-child {
  border-radius: 0 0 10px 10px;
}

.sc-settings-link:only-child {
  border-radius: 10px;
}

.sc-settings-link:not(:last-child) {
  border-bottom: 1px solid #f7f7f7;
}

.sc-settings-link:hover {
  background: #e1e1e1;
  color: #222222;
}

.sc-settings-link-desc {
  font-size: 12px;
  font-weight: 400;
  color: #7e7e7e;
}

.sc-settings-link-danger {
  color: #dc2626;
}

.sc-settings-link-danger:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.sc-settings-link-danger .sc-settings-link-desc {
  color: #f87171;
}

/* Client access radio options */
.sc-client-access-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sc-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sc-radio-option:hover {
  border-color: #b1b1b1;
  background: #e1e1e1;
}

.sc-radio-option input[type="radio"] {
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

.sc-radio-option input[type="radio"]:checked + .sc-radio-content strong {
  color: #222222;
}

.sc-radio-option-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.sc-radio-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-radio-content strong {
  font-size: 13px;
  font-weight: 600;
  color: #515151;
}

.sc-radio-content span {
  font-size: 12px;
  color: #7e7e7e;
}

/* Muted card for disconnect on project selection */
.sc-card-muted {
  background: #f7f7f7;
  padding: 16px 20px;
  text-align: center;
}

.sc-disconnect-hint {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #7e7e7e;
}

/* ============================================
   THEME CONFIGURATION STYLES
   ============================================ */

/* Version toggle (Classic / Pill) */
.sc-version-toggle {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
}

.sc-version-option {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.sc-version-option:hover {
  color: #515151;
}

.sc-version-option.active {
  background: #222222;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Theme presets grid */
.sc-theme-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sc-theme-preset {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #515151;
  transition: all 0.15s ease;
  text-align: left;
}

.sc-theme-preset:hover {
  box-shadow: inset 0 0 0 1px #b1b1b1;
  color: #222222;
}

.sc-theme-preset.active {
  box-shadow: inset 0 0 0 2px #222222;
  color: #222222;
  font-weight: 600;
}

.sc-preset-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Color tokens grid */
.sc-color-tokens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.sc-color-token {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.sc-color-token span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #7e7e7e;
  margin-bottom: 6px;
}

.sc-color-token input[type="color"] {
  width: 100%;
  height: 32px;
  padding: 0;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
}

.sc-color-token input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.sc-color-token input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.sc-color-token input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Position options */
.sc-position-options {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.1);
  flex-wrap: wrap;
}

.sc-position-option {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #7e7e7e;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.sc-position-option:hover {
  color: #515151;
}

.sc-position-option.active {
  background: #222222;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive theme section */
@media (min-width: 480px) {
  .sc-theme-presets {
    grid-template-columns: repeat(3, 1fr);
  }

  .sc-color-tokens {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .sc-theme-presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .sc-color-tokens {
    grid-template-columns: 1fr;
  }

  .sc-position-options {
    flex-wrap: wrap;
  }

  .sc-position-option {
    flex: 0 0 calc(33.33% - 3px);
  }
}
