/* Find and Replace Tool Styles - Desktop & Responsive (No mob-style.css) */
.findreplace-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.findreplace-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}
.findreplace-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.findreplace-icon {
    font-size: 2.8rem;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.findreplace-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-family: 'Poppins', sans-serif;
}
.findreplace-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.findreplace-textarea-group {
    margin-bottom: 1.5rem;
}
.findreplace-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: block;
}
.findreplace-textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.2s;
}
.findreplace-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.findreplace-controls {
    background: var(--bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.findreplace-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.input-field {
    display: flex;
    flex-direction: column;
}
.input-field label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-weight: 500;
}
.findreplace-input {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 1rem;
    width: 100%;
}
.findreplace-input:focus {
    outline: none;
    border-color: var(--primary);
}
.findreplace-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}
.option-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.findreplace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.findreplace-action-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.7rem 1.3rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}
.findreplace-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.primary-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.findreplace-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}
.stats-badge {
    background: var(--bg);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.stats-badge strong {
    color: var(--primary);
    font-weight: 700;
}
.findreplace-preview {
    margin-bottom: 1.5rem;
}
.findreplace-preview-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    min-height: 120px;
    max-height: 250px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}
.highlight-match {
    background-color: #fde047;
    color: #1e1e2e;
    border-radius: 4px;
    padding: 0 2px;
    font-weight: 600;
}
.dark-mode .highlight-match {
    background-color: #facc15;
    color: #0f0f1a;
}
.preview-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}
.findreplace-download-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.download-btn-primary, .download-btn-secondary {
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
}
.download-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}
.download-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16,185,129,0.3);
}
.download-btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.download-btn-secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
}
.findreplace-presets {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 2rem 0;
}
.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}
.preset-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.preset-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.findreplace-funfact {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
    margin: 2rem auto;
    font-size: 0.95rem;
}
.findreplace-funfact code {
    background: rgba(0,0,0,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
}
.findreplace-reference {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.5rem;
    margin: 2rem 0;
}
.reference-table {
    width: 100%;
    border-collapse: collapse;
}
.reference-table th, .reference-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}
.reference-table th {
    color: var(--text);
    font-weight: 600;
}
.findreplace-seo {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.findreplace-seo h2, .findreplace-seo h3 {
    color: var(--text);
    margin-bottom: 1rem;
}
.feature-list {
    padding-left: 1.5rem;
    color: var(--text-light);
}
.feature-list li {
    margin-bottom: 0.5rem;
}
.download-card-container {
    margin-top: 2rem;
}
.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}
.download-card-header, .download-card-footer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.download-logo-icon {
    font-size: 2rem;
}
.download-result-box {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}
.download-result-value {
    color: white;
    font-weight: bold;
}
@media (max-width: 768px) {
    .findreplace-container { padding: 0 1rem; }
    .findreplace-title { font-size: 2rem; }
    .findreplace-input-row { grid-template-columns: 1fr; }
    .findreplace-actions { justify-content: center; }
    .download-buttons { flex-direction: column; }
}