/*!********************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/whatsapp-share-widget/share-widget.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************/
/* ============================================
   Share Widget — form + preview + code
   (ported from the original whatsapp-share-widget app)
   ============================================ */
.wsw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.wsw-form {
  background: #fff;
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-xl);
}

.main-url-group {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  color: var(--text-color);
  font-size: var(--font-size-base);
}

.field-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 var(--spacing-md);
  line-height: 1.4;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #fff;
  font-family: inherit;
}

.form-group textarea {
  min-height: 150px;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #25D366;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.url-group {
  display: flex;
  gap: 1rem;
}

.url-group input {
  flex: 1 1;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.fetch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.primary-btn,
.fetch-btn {
  background: var(--primary-color);
  color: white;
  border: none;
}

.primary-btn:hover,
.fetch-btn:hover {
  background: var(--primary-hover);
}

.primary-btn:disabled,
.fetch-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.secondary-btn {
  background: #f8f9fa;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.secondary-btn:hover {
  background: #e9ecef;
}

.text-formatting-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.format-btn {
  padding: 0.4rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
  color: #4a5568;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  font-weight: 500;
  font-family: inherit;
}

.format-btn:hover {
  background: #e9ecef;
  color: #1a1a1a;
}

.char-count {
  color: #6c757d;
  font-size: 0.85rem;
}

.char-count.warn {
  color: #fd7e14;
}

.char-count.danger {
  color: #dc3545;
}

.custom-fields {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.preview-settings {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-top: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.text-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  background: #f8f9fa;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: left;
  margin-top: 1.5rem;
  font-family: inherit;
}

.text-btn:hover {
  background: #e9ecef;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
  padding: 0.4rem 0;
  color: #1a1a1a;
  font-size: 0.9rem;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #25D366;
}

.wsw-preview,
.wsw-code {
  max-width: 1200px;
  margin: 0 auto var(--spacing-xl);
  padding: 0 var(--spacing-lg);
}

.wsw-preview h2,
.wsw-code h2 {
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--text-color);
}

#widget-preview {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.code-container {
  position: relative;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.code-container.collapsed pre {
  max-height: 200px;
  overflow: hidden;
}

.code-container pre {
  margin: 0;
  padding: 1.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #e2e8f0;
  background: transparent;
  overflow-x: auto;
  -moz-tab-size: 2;
       tab-size: 2;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-fade {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, #1e1e1e);
  pointer-events: none;
}

.code-container.collapsed .code-fade {
  display: block;
}

.code-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: #2d2d2d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.code-btn {
  background: none;
  border: none;
  color: #25D366;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
  font-family: inherit;
}

.code-btn:hover {
  color: #128C7E;
  background: rgba(255, 255, 255, 0.05);
}

.error-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  background: #dc3545;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}

.notification-message {
  flex: 1 1;
  font-size: 14px;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0 6px;
}

@media (max-width: 768px) {
  .url-group {
    flex-direction: column;
  }
  .wsw-form {
    padding: 1rem;
  }
  .action-buttons {
    flex-direction: column;
  }
}

