
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.collapsible {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.active,
.collapsible:hover {
    background-color: #ccc;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

.tab button {
    background-color: grey;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #ccc;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.collapsible {
    background-color: #777;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.active,
.collapsible:hover {
    background-color: #f9f9f9;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #535353;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #4a5568;
    border-radius: 10px;
    width: 95%;
    max-height: 60vh;
    overflow-y: auto;
}

.close {
    color: #a0aec0;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #f7fafc;
    text-decoration: none;
    cursor: pointer;
}

.tree-view {
    font-family: monospace;
    user-select: none;
}

.tree-view details {
    margin-left: 20px;
}

.tree-view summary {
    cursor: pointer;
}

.tree-view .key {
    color: #63b3ed;
}

.tree-view .string {
    color: #68d391;
}

.tree-view .number {
    color: #f6ad55;
}

.tree-view .boolean {
    color: #fc8181;
}

.tree-view .null {
    color: #cbd5e0;
}
/* styles.css - Main stylesheet for DataForge AI */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #ecf0f1;
    --text-color: #34495e;
    --border-color: #bdc3c7;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif!important;
    line-height: 1.6!important;
    color: var(--text-color)!important;
    background-color: #9f9f9f !important;
}

header {
    background-color: #bdc3c7;
    color: white;
    padding: 1rem 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100vw
}

header h1 {
    margin-left: 2rem;
    font-size: 2rem;
}

nav {
    background-color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style-type: none;
    padding: 0.5rem 0;
    align-content: center;
    align-items: center;
    justify-content: space-evenly;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.drop-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.drop-area:hover, .drop-area.dragover {
    background-color: rgba(52, 152, 219, 0.1);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress {
    width: 0;
    height: 100%;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
    text-align: center;
    color: white;
    font-size: 0.8rem;
    line-height: 20px;
}

button {
    background-color: var(--secondary-color)!important;!i;!;
    color: white!important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;!;
    border: none;
    padding: 0.5rem 1rem!important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
    border-radius: 4px!important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
    cursor: pointer!important;!importan;!importa;!import;!impor;!impo;!imp;!im;!i;!;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--primary-color);
}

#documentList {
    margin-top: 1rem;
}

#documentList div {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.config-panel {
    background-color: var(--background-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.config-panel h3 {
    margin-bottom: 0.5rem;
}

.config-panel label {
    display: block;
    margin-bottom: 0.5rem;
}

.config-panel select, .config-panel input[type="number"], .config-panel input[type="text"] {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

#analysisResults, #generatedContent {
    margin-top: 1rem;
}

#analysisResults > div, #generatedContent > div {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

#analysisResults h3, #generatedContent h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

#analysisResults h4, #generatedContent h4 {
    color: var(--secondary-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#analysisResults pre, #generatedContent pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

#systemPrompts div {
    margin-bottom: 1rem;
}

#systemPrompts textarea {
    width: 100%;
    height: 100px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
}

#errorMessages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.error-message {
    background-color: var(--error-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    header h1 {
        text-align: center;
        margin-left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .config-panel label {
        margin-bottom: 1rem;
    }
}

#text-input {
    display: flex;
    align-content: stretch;
    justify-content: space-around;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}


#clearAllBtn{
    background: #2c3d50;
}

#settings-input > label > input {
    width: 70%;
    margin-right: 50px;
}

#settings-input > label {
    padding: 5px;
    display: flex;
    margin: 5px;
    flex-direction: row;
    justify-content: space-between;
}



.action-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease 0.3s;
}

.action-buttons.visible {
    opacity: 1;
    transform: translateX(0);
}

.chat-btn, .topup-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.chat-btn {
    background-color: #007bff;
    color: white;
}

.topup-btn {
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}




<style>
:root {
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header p {
    color: #6c757d;
    font-size: 1rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-title svg {
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(58, 134, 255, 0.25);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-col {
    flex: 1;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn svg {
    margin-right: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2a75f0;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
}

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

.toggle-switch {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.toggle-switch label {
    margin-bottom: 0;
    cursor: pointer;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.status-indicator.success {
    color: var(--success-color);
}

.status-indicator.error {
    color: var(--error-color);
}

.status-indicator svg {
    margin-right: 0.5rem;
}

.context-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.context-section.visible {
    max-height: 500px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-primary {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: rgba(131, 56, 236, 0.1);
    color: var(--secondary-color);
}

.badge-optional {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    font-weight: normal;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}



.modal-trigger {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(58, 58, 244, 0.3);
  }

  .modal-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(58, 58, 244, 0.4);
  }

  .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .modal-container.active {
    opacity: 1;
    visibility: visible;
  }

  .payment_modal {
    background: white;
    width: 100%;
    max-width: 560px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
  }

  .modal-container.active .payment_modal {
    transform: scale(1);
  }

  .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    position: relative;
  }

  .modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
  }

  .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
  }

  .modal-content {
    padding: 30px;
  }

  .currency-tabs {
    display: flex;
    margin-bottom: 24px;
    background-color: #f0f2f5;
    border-radius: var(--border-radius);
    padding: 4px;
  }

  .currency-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .currency-tab.active {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .currency-tab .icon {
    width: 20px;
    height: 20px;
  }

  .currency-tab:first-child {
    color: var(--btc-color);
  }

  .currency-tab:last-child {
    color: var(--eth-color);
  }

  .payment-details {
    display: none;
    animation: fadeIn 0.3s ease forwards;
  }

  .payment-details.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .qr-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
  }

  .qr-code {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
  }

  .payment-info {
    margin-bottom: 20px;
  }

  .payment-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
  }

  .wallet-address {
    background-color: #f0f2f5;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    position: relative;
    word-break: break-all;
    text-align: center;
    border: 1px dashed #d0d0d0;
  }

  .copy-address {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    width: 100%;
    margin-top: 12px;
    font-weight: 600;
  }

  .copy-address:hover {
    background-color: #2a2adc;
  }

  .payment-amount {
    text-align: center;
    margin-bottom: 24px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
  }

  .payment-amount p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
  }

  .payment-amount h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
  }

  .payment-amount .currency {
    font-size: 16px;
    color: #888;
    margin-left: 4px;
  }

  .notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .notification.active {
    transform: translateX(0);
  }

  .timer-section {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
  }

  .timer {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 5px;
  }

  @media (max-width: 550px) {
    .payment_modal {
      width: 90%;
    }
  }

  .qr-code-container {
    position: relative;
    margin-bottom: 20px;
  }

  .qr-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .qr-overlay img {
    width: 32px;
    height: 32px;
  }

  /* Animation for when payment is detected */
  .payment-success {
    text-align: center;
    padding: 20px;
    display: none;
  }

  .payment-success.active {
    display: block;
    animation: successFadeIn 0.5s ease forwards;
  }

  @keyframes successFadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    border-radius: 50%;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }

  .payment-success h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--dark-color);
  }

  .payment-success p {
    color: #666;
    margin-bottom: 20px;
  }

  .done-button {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }

  .done-button:hover {
    background-color: #3d8b40;
  }

  :root {
    --primary-color: #3a3af4;
    --secondary-color: #f9a826;
    --dark-color: #121212;
    --light-color: #f5f5f5;
    --success-color: #4CAF50;
    --eth-color: #627eea;
    --btc-color: #f7931a;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
  }

  body {
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    min-height: 100vh;
  }