* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #374151;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.container {
  width: 90%;
  max-width: 600px;
  padding: 16px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background-color: transparent;
  color: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: normal;
  font-size: 0;
}

.logo-icon img {
  width: 48px;
  height: 48px;
}

.logo-text h1 {
  font-size: 18px;
  font-weight: bold;
  color: #111827;
}

.logo-text p {
  font-size: 12px;
  color: #6b7280;
}

/* Main Title */
.main-title {
  text-align: center;
  margin-bottom: 20px;
}

.main-title h2 {
  font-size: 20px;
  font-weight: bold;
  color: #111827;
  margin-bottom: 8px;
}

.highlight {
  color: #2563eb;
}

.main-title p {
  font-size: 12px;
  color: #6b7280;
  max-width: 400px;
  margin: 0 auto;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.tab-button {
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-button.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-button:hover {
  color: #2563eb;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Sections */
.section {
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px 6px 0 0;
  font-weight: 500;
  font-size: 14px;
}

.input-header {
  background-color: #2563eb;
  color: white;
}

.output-header {
  background-color: #7c3aed;
  color: white;
}

.tips-header {
  background-color: #059669;
  color: white;
}

.examples-header {
  background-color: #374151;
  color: white;
}

.section-content {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 6px 6px;
  padding: 12px;
}

.section-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

/* Textarea */
textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  outline: none;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 12px;
  resize: vertical;
  background-color: #f9fafb;
  padding: 8px;
  border-radius: 4px;
}

#output-sql {
  background-color: #f3f4f6;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 8px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-outline {
  background-color: white;
  color: #374151;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

/* Icons */
.icon {
  width: 16px;
  height: 16px;
}

/* Character count */
#char-count {
  font-size: 12px;
  color: #6b7280;
}

/* Tips */
.tips-content {
  padding: 0;
}

.tip-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-indicator {
  width: 4px;
  background-color: #2563eb;
  border-radius: 2px;
  flex-shrink: 0;
}

.tip-content {
  flex: 1;
}

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

.tip-title {
  font-weight: 500;
  font-size: 14px;
  color: #111827;
}

.tip-description {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.tip-example {
  background-color: #f3f4f6;
  padding: 8px;
  border-radius: 4px;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 11px;
  color: #374151;
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Examples */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.example-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.example-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.example-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.example-header span {
  font-weight: 500;
  font-size: 12px;
}

.users-icon {
  color: #2563eb;
}

.orders-icon {
  color: #7c3aed;
}

.update-icon {
  color: #059669;
}

.delete-icon {
  color: #dc2626;
}

.example-card p {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 8px;
}

.example-card code {
  font-size: 10px;
  color: #6b7280;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.examples-note {
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ajoutez ou modifiez les styles pour la section "À propos" */
.about-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    color: #6b7280;
}


