 :root {
    --primary: #4f46e5;
    /*--dark-bg: #1e1e2e;
    --light-bg: #ffffff;*/
    --diff-added: rgba(74, 222, 128, 0.3);
    --diff-removed: rgba(248, 113, 113, 0.3);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    transition: background 0.3s ease;
}



.container {
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.text-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    height: 250px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: none;
    font-family: 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button, select {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

button {
    background: var(--primary);
    color: white;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#diffResult {
    padding: 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ccc;
    min-height: 100px;
    white-space: pre-wrap;
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.diff-added {
    background: var(--diff-added);
    padding: 2px 0;
}

.diff-removed {
    background: var(--diff-removed);
    padding: 2px 0;
    text-decoration: line-through;
}

.line-number {
        color: #666;
        margin-right: 10px;
        font-family: monospace;
        user-select: none;
    }
    .export-btn {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .seo-article {
        max-width: 100%;
        margin: 0 auto;
        line-height: 1.6;
        padding: 20px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        background-color: #f0f0f0;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .seo-article h1, 
    .seo-article h2 {
        color: #2563eb;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    }
    .meta-description {
        font-style: italic;
        color: #64748b;
    }
    .use-cases {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .faq-item {
        margin-bottom: 15px;
    }
    .cta-button {
        background: #2563eb;
        color: white;
        padding: 10px 20px;
        border-radius: 5px;
        text-decoration: none;
    }


 /* ===== ARTICLE SPECIFIC STYLES - NO BODY STYLES ===== */
 #textdiff-guide-article {
      width: 95%;
      margin: 0 auto;
      padding: 2rem 1.5rem 3rem 1.5rem;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    /* Hero Section */
    .textdiff-guide-hero {
      text-align: center;
      margin-bottom: 2.5rem;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
      border-radius: 32px;
      box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3);
    }

    .textdiff-guide-hero h2 {
      font-size: 2.6rem;
      font-weight: 800;
      color: white;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      font-family: 'Montserrat', serif;
    }

    .textdiff-guide-hero .textdiff-hero-sub {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.9);
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.5;
    }

    .textdiff-guide-meta {
      display: flex;
      justify-content: center;
      gap: 2rem;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
      margin-top: 1.2rem;
      flex-wrap: wrap;
    }

    .textdiff-guide-meta span i {
      margin-right: 0.5rem;
    }

    /* Main Content */
    .textdiff-main-content {
      background: white;
      border-radius: 28px;
      padding: 2rem 2rem 2.5rem 2rem;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      border: 1px solid rgba(79, 70, 229, 0.15);
    }

    .textdiff-main-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #4f46e5;
      border-left: 5px solid #3b82f6;
      padding-left: 1rem;
      font-family: 'Montserrat', serif;
    }

    .textdiff-main-content h2:first-of-type {
      margin-top: 0;
    }

    .textdiff-main-content h3 {
      font-size: 1.35rem;
      font-weight: 600;
      margin: 1.5rem 0 0.75rem 0;
      color: #3b82f6;
    }

    .textdiff-main-content p {
      font-size: 1.05rem;
      color: #2d3748;
      margin-bottom: 1.2rem;
      line-height: 1.6;
    }

    .textdiff-main-content ul, .textdiff-main-content ol {
      margin: 1rem 0 1.2rem 1.8rem;
      color: #2d3748;
      line-height: 1.6;
    }

    .textdiff-main-content li {
      margin-bottom: 0.5rem;
    }

    .textdiff-highlight-box {
      background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(59, 130, 246, 0.05));
      border-left: 6px solid #3b82f6;
      padding: 1.25rem 1.5rem;
      border-radius: 20px;
      margin: 1.75rem 0;
    }

    .textdiff-pro-tip {
      background: rgba(59, 130, 246, 0.1);
      border-radius: 20px;
      padding: 1.2rem 1.5rem;
      margin: 1.5rem 0;
      display: flex;
      gap: 1rem;
      align-items: flex-start;
      border: 1px solid rgba(79, 70, 229, 0.3);
    }

    .textdiff-pro-tip i {
      font-size: 1.8rem;
      color: #3b82f6;
    }

    .textdiff-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.2rem;
      margin: 2rem 0;
    }

    .textdiff-stat-card {
      background: #f8f9fa;
      border-radius: 20px;
      padding: 1.2rem;
      text-align: center;
      transition: all 0.2s;
      border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .textdiff-stat-card .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: #4f46e5;
      margin-bottom: 0.25rem;
    }

    .textdiff-quote-block {
      background: #f8f9fa;
      padding: 1.5rem;
      border-radius: 24px;
      text-align: center;
      font-style: italic;
      margin: 1.5rem 0;
      border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .textdiff-quote-block i {
      font-size: 2rem;
      color: #3b82f6;
      margin-bottom: 0.5rem;
      display: inline-block;
    }

    .textdiff-table-wrapper {
      overflow-x: auto;
      margin: 1.5rem 0;
    }

    .textdiff-algorithms-table {
      width: 100%;
      border-collapse: collapse;
      background: #f8f9fa;
      border-radius: 16px;
      overflow: hidden;
    }

    .textdiff-algorithms-table th, .textdiff-algorithms-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid rgba(79, 70, 229, 0.2);
    }

    .textdiff-algorithms-table th {
      background: rgba(79, 70, 229, 0.1);
      font-weight: 600;
      color: #4f46e5;
    }

    .textdiff-algorithms-table tr:hover {
      background: rgba(59, 130, 246, 0.05);
    }

    .textdiff-applications-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
      margin: 1.5rem 0;
    }

    .textdiff-app-card {
      background: #f8f9fa;
      border-radius: 16px;
      padding: 1.2rem;
      border: 1px solid rgba(79, 70, 229, 0.2);
      transition: all 0.2s;
    }

    .textdiff-app-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
    }

    .textdiff-app-title {
      font-weight: 700;
      color: #4f46e5;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .textdiff-footer-note {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.85rem;
      color: #718096;
      border-top: 1px solid #e2e8f0;
      padding-top: 2rem;
    }

    @media (max-width: 768px) {
      .textdiff-guide-hero h2 {
        font-size: 2rem;
      }
      .textdiff-main-content {
        padding: 1.5rem;
      }
      #textdiff-guide-article {
        padding: 1rem;
      }
    }