body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.connection-section {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.connection-section .sync-input {
  width: 90%;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  margin-left: 10px;
  align-items: center;
}

.connection-section label {
  font-weight: 600;
  min-width: 100px;
  font-size: 14px;
}

.connection-section input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.connection-section input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.connection-section button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

#toggle-btn {
  background-color: #007bff;
  color: white;
  min-width: 100px;
}

#toggle-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

#toggle-btn.disconnect {
  background-color: #dc3545;
}

#toggle-btn.disconnect:hover:not(:disabled) {
  background-color: #c82333;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-indicator {
  display: flex;
  width: 90%;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: #fff;
  border-radius: 4px;
  border-left: 4px solid #6c757d;
  margin-left: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.offline {
  background-color: #dc3545;
}

.status-dot.online {
  background-color: #28a745;
}

.status-dot.connecting {
  background-color: #ffc107;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.status-indicator.online {
  border-left-color: #28a745;
}

.status-indicator.connecting {
  border-left-color: #ffc107;
}

.content-section {
  margin-bottom: 30px;
}

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

.content-section label {
  font-weight: 600;
  color: #333;
  margin: 0;
}

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

.file-actions button {
  padding: 6px 12px;
  border: 1px solid #6c757d;
  background-color: #6c757d;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.file-actions button:hover {
  background-color: #5a6268;
}

.file-actions button:active {
  background-color: #545b62;
}

#content-textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

#content-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.info-section {
  background-color: #e7f3ff;
  padding: 20px;
  border-radius: 6px;
  border-left: 4px solid #007bff;
}

.info-section p {
  margin: 0 0 10px 0;
  font-weight: 600;
  color: #333;
}

.info-section ul {
  margin: 0;
  padding-left: 20px;
}

.info-section li {
  margin-bottom: 5px;
  color: #666;
}
