/* Text Diff Checker Styles */
.diff-container {
    max-width: 100%;
    margin: 0 auto;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; */
    color: #333;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }
  
  /* Interface Section */
  .diff-interface {
    padding: 20px;
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
  }
  
  .diff-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .diff-column {
    flex: 1;
    min-width: 300px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .diff-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .diff-actions {
    display: flex;
    gap: 5px;
  }
  
  .btn-action {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    color: #64748b;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
 
  .diff-textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    /* font-family: 'Courier New', monospace; */
    /* font-size: 14px; */
    line-height: 1.5;
    border: none;
    resize: vertical;
    outline: none;
  }
  
  .diff-actions-main {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
  }
  .btn-primary{
    padding: 11px 31px;
    border: 0px;
    outline: none;
    cursor: pointer;

  }
  .btn-success{
    background-color: #08d490;
    padding: 11px 31px;
    border: 0px;
    outline: none;
    color: white;
    cursor: pointer;
  }
  .btn-success:hover{
    background-color: #0ca16f;
  }
  .btn-danger{
    background-color: rgba(255, 0, 0, 0.6);
    padding: 11px 31px;
    border: 0px;
    outline: none;
    cursor: pointer;

    
  }

  
  
  
  
  .btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
  }
  
  .btn-secondary:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
  }
  
  
  
  /* Settings Panel */
  .diff-settings {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
  }
  
  .settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
    transition: background-color 0.2s ease;
  }
  
  .settings-toggle:hover {
    background-color: #f8fafc;
  }
  
  .toggle-icon {
    transition: transform 0.3s ease;
  }
  
  .settings-toggle.active .toggle-icon {
    transform: rotate(180deg);
  }
  
  .settings-panel {
    display: none;
    padding: 0 20px 15px;
    background-color: #f8fafc;
    border-top: 1px solid #eaeaea;
  }
  
  .settings-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  
  .setting-option {
    padding: 8px 0;
  }
  
  .setting-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
  }
  
  /* Results Section */
  .diff-results {
    display: none;
    background-color: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .diff-results.active {
    display: block;
  }
  
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .results-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
  }
  
  .diff-stats {
    display: flex;
    gap: 12px;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
  }
  
  .stat-added {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
  }
  
  .stat-removed {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
  }
  
  .stat-changed {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
  }
  
  .results-view-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
  }
  
  .view-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .view-btn:hover {
    background-color: #f1f5f9;
  }
  
  .view-btn.active {
    background-color: #e2e8f0;
    color: #334155;
    font-weight: 600;
  }
  
  .diff-output-container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f8fafc;
  }
  
  .diff-output {
    /* font-family: 'Courier New', monospace; */
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
  }
  
  .diff-line {
    display: flex;
    margin-bottom: 2px;
  }
  
  .line-number {
    user-select: none;
    color: #94a3b8;
    width: 40px;
    text-align: right;
    padding-right: 10px;
    border-right: 1px solid #e2e8f0;
    margin-right: 10px;
  }
  
  .line-content {
    flex: 1;
    word-break: break-all;
  }
  
  .line-added {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 3px solid #10b981;
  }
  
  .line-removed {
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
  }
  
  .line-changed {
    background-color: rgba(249, 115, 22, 0.1);
    border-left: 3px solid #f97316;
  }
  
  /* Features Section */
  .features-section {
    padding: 30px 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .features-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: #2c3e50;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .feature-card {
    background-color: #f8fafc;
    padding: 25px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
  }
  
  .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
  }
  
  .feature-card h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #2c3e50;
  }
  
  .feature-card p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
  }
  
  /* How To Use Section */
  .how-to-use {
    padding: 30px 20px;
    background-color: #fff;
    margin-top: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .how-to-use h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
  }
  
  .steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
  }
  
  .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
  }
  
  .step-content h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #2c3e50;
  }
  
  .step-content p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .diff-columns {
      flex-direction: column;
    }
    
    .results-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .steps-container {
      grid-template-columns: 1fr;
    }
  }
  
  /* Side-by-Side View Styles */
  .side-by-side-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .side-original, .side-modified {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .side-header {
    padding: 8px 10px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
  }
  
  /* Unified View is the default */
  .unified-view {
    padding: 10px;
  }
  
  @media (max-width: 768px) {
    .side-by-side-view {
      grid-template-columns: 1fr;
    }
  }