/* ─── Text Clean-Up Tool — True Premium Layout ─── */

.text-cleanup .tool-area {
    background: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

/* Subtle accent bar at top — indigo gradient */
.text-cleanup .tool-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #818cf8, #a5b4fc);
}

.text-cleanup .tool-header {
    margin-bottom: 32px;
}

.text-cleanup .tool-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.text-cleanup .tool-header p {
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

/* Input group — large textarea */
.text-cleanup .input-group {
    margin-bottom: 20px;
}

.text-cleanup .input-group label {
    display: block;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.text-cleanup .input-group textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.25s ease;
    background: #f8fafc;
    color: #0f172a;
    resize: vertical;
}

.text-cleanup .input-group textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
    background: #ffffff;
}

/* Button group — modern, spaced */
.text-cleanup .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 8px 0;
}

.text-cleanup .button-group button {
    padding: 10px 22px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.text-cleanup .button-group button:hover {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.text-cleanup .button-group .clear-btn {
    background: #e2e8f0;
    border-color: #e2e8f0;
}

.text-cleanup .button-group .clear-btn:hover {
    background: #cbd5e1;
    color: #0f172a;
    border-color: #cbd5e1;
    box-shadow: none;
}

/* Output area — clean and spaced */
.text-cleanup .output-area {
    margin-top: 24px;
}

.text-cleanup .output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.text-cleanup .output-header label {
    font-weight: 500;
    color: #0f172a;
    font-size: 0.95rem;
}

.text-cleanup .output-area textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    resize: vertical;
    cursor: default;
}

.text-cleanup .copy-btn {
    padding: 8px 20px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.text-cleanup .copy-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* SEO content — clean, airy */
.text-cleanup .seo-content {
    margin-top: 48px;
    padding: 36px;
    background: #fafcff;
    border-radius: 20px;
    border: 1px solid #eef2f6;
}

.text-cleanup .seo-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.text-cleanup .seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 20px;
}

.text-cleanup .seo-content ul {
    margin-left: 20px;
    color: #475569;
    line-height: 1.8;
}

.text-cleanup .seo-content p {
    color: #475569;
    line-height: 1.8;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .text-cleanup .tool-area {
        padding: 24px;
    }

    .text-cleanup .tool-header h2 {
        font-size: 1.6rem;
    }

    .text-cleanup .input-group textarea {
        min-height: 150px;
    }

    .text-cleanup .output-area textarea {
        min-height: 150px;
    }

    .text-cleanup .button-group button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .text-cleanup .seo-content {
        padding: 24px;
    }
}