:root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --text: #2b2d42;
            --text-light: #6c757d;
            --bg: #f8f9fa;
            --card: #ffffff;
            --border: #e9ecef;
            --highlight: rgba(67, 97, 238, 0.1);
            --success: #4cc9f0;
            --warning: #f8961e;
            --error: #f72585;
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
            --radius: 8px;
            --transition: all 0.2s ease;
        }

        .dark-mode {
            --primary: #4895ef;
            --primary-dark: #3a7bc8;
            --text: #f8f9fa;
            --text-light: #adb5bd;
            --bg: #121212;
            --card: #1e1e1e;
            --border: #2d2d2d;
            --highlight: rgba(72, 149, 239, 0.2);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .main-container {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: var(--bg);
            color: var(--text);
            line-height: 1.6;
            transition: var(--transition);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            width: 95%;
            margin: 0 auto;
            padding: 0 15px;
        }

        .header-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-top: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .header-actions {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .btn-icon {
            background: none;
            border: none;
            color: var(--text-light);
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-icon:hover {
            background-color: var(--highlight);
            color: var(--primary);
        }

        .app-title {
            font-size: 2rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .app-subtitle {
            color: var(--text-light);
            margin-bottom: 30px;
        }

        .app-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        @media (max-width: 992px) {
            .app-layout {
                grid-template-columns: 1fr;
            }
        }

        .panel {
            background-color: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px;
            height: 100%;
            display: flex;
            flex-direction: column;
            box-shadow: 0px 0px 10px #888888;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .panel-title {
            font-weight: 600;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .panel-actions {
            display: flex;
            gap: 8px;
        }

        .editor {
            width: 100%;
            min-height: 300px;
            padding: 15px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background-color: var(--card);
            color: var(--text);
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 14px;
            line-height: 1.5;
            resize: none;
            transition: var(--transition);
            flex-grow: 1;
        }

        .editor:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
        }

        .controls {
            background-color: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 20px;
            margin-bottom: 20px;
             box-shadow: 0px 0px 10px #888888;
        }

        .control-group {
            margin-bottom: 20px;
        }

        .control-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            font-size: 0.9rem;
        }

        .input-group {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .input-field {
            flex-grow: 1;
            padding: 10px 15px;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background-color: var(--card);
            color: var(--text);
            font-family: inherit;
            transition: var(--transition);
        }

        .input-field:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
        }

        .btn {
            padding: 10px 20px;
            border-radius: var(--radius);
            border: none;
            background-color: var(--primary);
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
        }

        .btn:hover {
            background-color: var(--primary-dark);
            transform: translateY(-1px);
        }

        .btn-secondary {
            background-color: var(--border);
            color: var(--text);
        }

        .btn-secondary:hover {
            background-color: #d1d5db;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 0.8rem;
        }

        .checkbox-group {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
            flex-wrap: wrap;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            cursor: pointer;
            user-select: none;
        }

        .checkbox-input {
            width: 16px;
            height: 16px;
            accent-color: var(--primary);
            cursor: pointer;
        }

        .stats {
            display: flex;
            gap: 15px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .stat-item {
            background-color: var(--highlight);
            padding: 8px 12px;
            border-radius: var(--radius);
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .stat-value {
            font-weight: 600;
            color: var(--primary);
        }

        .diff-added {
            background-color: rgba(76, 201, 240, 0.2);
            text-decoration: underline;
        }

        .diff-removed {
            background-color: rgba(247, 37, 133, 0.2);
            text-decoration: line-through;
        }

        .tab-container {
            margin-bottom: 20px;
        }

        .tab-buttons {
            display: flex;
            border-bottom: 1px solid var(--border);
            margin-bottom: 15px;
        }

        .tab-btn {
            padding: 8px 16px;
            background: none;
            border: none;
            border-bottom: 2px solid transparent;
            cursor: pointer;
            font-weight: 500;
            color: var(--text-light);
            transition: var(--transition);
        }

        .tab-btn.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .history-item {
            padding: 10px;
            border-radius: var(--radius);
            margin-bottom: 8px;
            background-color: var(--highlight);
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .history-item:hover {
            background-color: rgba(67, 97, 238, 0.2);
        }

        .regex-help {
            background-color: var(--highlight);
            padding: 15px;
            border-radius: var(--radius);
            margin-top: 20px;
        }

        .regex-help-title {
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .regex-examples {
            margin-top: 10px;
            font-size: 0.85rem;
        }

        .regex-example {
            margin-bottom: 8px;
            padding-left: 15px;
            position: relative;
        }

        .regex-example:before {
            content: "•";
            position: absolute;
            left: 0;
            color: var(--primary);
        }

        

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .input-group {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
            
            .checkbox-group {
                flex-direction: column;
                gap: 8px;
            }
        }

        /* Animation */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .pulse {
            animation: pulse 1s infinite;
        }


/* ===== ARTICLE SPECIFIC STYLES - NO BODY STYLES ===== */
#searchreplace-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 */
    .sr-guide-hero {
      text-align: center;
      margin-bottom: 2.5rem;
      padding: 2rem 1.5rem;
      background: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
      border-radius: 32px;
      box-shadow: 0 12px 30px rgba(67, 97, 238, 0.3);
    }

    .sr-guide-hero h2 {
      font-size: 2.6rem;
      font-weight: 800;
      color: white;
      margin-bottom: 1rem;
      letter-spacing: -0.02em;
      font-family: 'Playfair Display', serif;
    }

    .sr-guide-hero .sr-hero-sub {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.9);
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.5;
    }

    .sr-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;
    }

    .sr-guide-meta span i {
      margin-right: 0.5rem;
    }

    /* Main Content */
    .sr-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(67, 97, 238, 0.15);
    }

    .sr-main-content h2 {
      font-size: 1.8rem;
      font-weight: 700;
      margin-top: 2rem;
      margin-bottom: 1rem;
      color: #4361ee;
      border-left: 5px solid #4cc9f0;
      padding-left: 1rem;
      font-family: 'Playfair Display', serif;
    }

    .sr-main-content h2:first-of-type {
      margin-top: 0;
    }

    .sr-main-content h3 {
      font-size: 1.35rem;
      font-weight: 600;
      margin: 1.5rem 0 0.75rem 0;
      color: #4cc9f0;
    }

    .sr-main-content p {
      font-size: 1.05rem;
      color: #2d3748;
      margin-bottom: 1.2rem;
      line-height: 1.6;
    }

    .sr-main-content ul, .sr-main-content ol {
      margin: 1rem 0 1.2rem 1.8rem;
      color: #2d3748;
      line-height: 1.6;
    }

    .sr-main-content li {
      margin-bottom: 0.5rem;
    }

    .sr-highlight-box {
      background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(76, 201, 240, 0.05));
      border-left: 6px solid #4cc9f0;
      padding: 1.25rem 1.5rem;
      border-radius: 20px;
      margin: 1.75rem 0;
    }

    .sr-pro-tip {
      background: rgba(76, 201, 240, 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(67, 97, 238, 0.3);
    }

    .sr-pro-tip i {
      font-size: 1.8rem;
      color: #4361ee;
    }

    .sr-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.2rem;
      margin: 2rem 0;
    }

    .sr-stat-card {
      background: #f5f7fa;
      border-radius: 20px;
      padding: 1.2rem;
      text-align: center;
      transition: all 0.2s;
      border: 1px solid rgba(67, 97, 238, 0.2);
    }

    .sr-stat-card .stat-number {
      font-size: 2rem;
      font-weight: 800;
      color: #4361ee;
      margin-bottom: 0.25rem;
    }

    .sr-quote-block {
      background: #f5f7fa;
      padding: 1.5rem;
      border-radius: 24px;
      text-align: center;
      font-style: italic;
      margin: 1.5rem 0;
      border: 1px solid rgba(67, 97, 238, 0.2);
    }

    .sr-quote-block i {
      font-size: 2rem;
      color: #4cc9f0;
      margin-bottom: 0.5rem;
      display: inline-block;
    }

    .sr-table-wrapper {
      overflow-x: auto;
      margin: 1.5rem 0;
    }

    .sr-regex-table {
      width: 100%;
      border-collapse: collapse;
      background: #f5f7fa;
      border-radius: 16px;
      overflow: hidden;
    }

    .sr-regex-table th, .sr-regex-table td {
      padding: 12px 16px;
      text-align: left;
      border-bottom: 1px solid rgba(67, 97, 238, 0.2);
    }

    .sr-regex-table th {
      background: rgba(67, 97, 238, 0.1);
      font-weight: 600;
      color: #4361ee;
    }

    .sr-regex-table tr:hover {
      background: rgba(76, 201, 240, 0.05);
    }

    .sr-applications-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1.2rem;
      margin: 1.5rem 0;
    }

    .sr-application-card {
      background: #f5f7fa;
      border-radius: 16px;
      padding: 1.2rem;
      border: 1px solid rgba(67, 97, 238, 0.2);
      transition: all 0.2s;
    }

    .sr-application-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(67, 97, 238, 0.1);
    }

    .sr-application-title {
      font-weight: 700;
      color: #4361ee;
      margin-bottom: 0.5rem;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .sr-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) {
      .sr-guide-hero h2 {
        font-size: 2rem;
      }
      .sr-main-content {
        padding: 1.5rem;
      }
      #searchreplace-guide-article {
        padding: 1rem;
      }
    }