/* Modern styling to match NeverDrafts app */
.wrap h1 {
  color: #1f2937;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.fv-sync-dashboard {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.fv-sync-main {
  flex: 2;
}

.fv-sync-sidebar {
  flex: 1;
}

.postbox {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.postbox h3.hndle {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  font-weight: 600;
  margin: 0;
  padding: 16px 20px;
}

.postbox .inside {
  padding: 20px;
}

/* Connection status styling */
.fv-connection-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.fv-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fv-status-connected {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.fv-status-disconnected {
  background-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.fv-status-text {
  font-weight: 600;
  color: #374151;
}

/* Connection instructions */
.fv-connection-instructions {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.fv-connection-instructions h3 {
  color: #1e40af;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.fv-connection-instructions ol {
  color: #1e40af;
  margin: 0;
  padding-left: 20px;
}

.fv-connection-instructions li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Connection key container */
.fv-connection-key-container {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.fv-connection-key-input {
  background-color: #f9fafb !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 6px !important;
  color: #374151 !important;
  font-family: "SF Mono", "Monaco", "Cascadia Code", "Roboto Mono", monospace !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  width: 400px !important;
  cursor: text !important;
}

.fv-connection-key-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
  outline: none !important;
}

.button-secondary {
  background: #6366f1 !important;
  border: 1px solid #6366f1 !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  text-shadow: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
}

.button-secondary:hover {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

/* Form styling */
.form-table th {
  color: #374151;
  font-weight: 600;
  padding: 20px 10px 20px 0;
}

.form-table td {
  padding: 20px 10px;
}

.regular-text {
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}

.regular-text:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  outline: none;
}

/* Sync status and logs */
.fv-sync-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.fv-sync-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.fv-sync-status-connected {
  background-color: #10b981;
}

.fv-sync-status-disconnected {
  background-color: #ef4444;
}

.fv-sync-logs {
  max-height: 200px;
  overflow-y: auto;
}

.fv-sync-log-item {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}

.fv-sync-log-item:last-child {
  border-bottom: none;
}

.fv-sync-log-status {
  font-weight: 600;
  font-size: 14px;
}

.fv-sync-log-success {
  color: #10b981;
}

.fv-sync-log-error {
  color: #ef4444;
}

.fv-sync-log-date {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Button styling */
#test-connection {
  background: #10b981 !important;
  border: 1px solid #10b981 !important;
  color: white !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  text-shadow: none !important;
}

#test-connection:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

/* Success/Error notices */
.notice {
  border-radius: 8px;
  padding: 12px 16px;
}

.notice-success {
  background-color: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
}

.notice-error {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}
