/* css/tools/invisible-text.css */

.tool-page-main {
    padding: 1.5rem 0 2.5rem 0;
}

.tool-article {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .tool-article {
        padding: 2rem;
    }
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.tool-header h1 .fas {
    margin-right: 0.5rem;
}

.tool-header .tool-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
}

.tool-interactive-area {
    margin-bottom: 2.5rem;
}

.invisible-text-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-color, #f8f9fa);
    border: 1px solid var(--border-color, #dee2e6);
    border-radius: var(--border-radius);
}

.invisible-text-controls fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.invisible-text-controls legend {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, #dee2e6);
    width: 100%;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.invisible-text-controls .control-group {
    display: flex;
    flex-direction: column;
    /* Stack label and input vertically */
    margin-bottom: 1rem;
}

@media (min-width: 576px) {

    /* Side-by-side for larger screens */
    .invisible-text-controls .control-group {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}


.invisible-text-controls label {
    margin-bottom: 0.35rem;
    /* Space below label when stacked */
    font-size: 0.95rem;
    color: var(--text-muted);
    /* flex-basis: 40%; Remove fixed basis for better stacking */
}

@media (min-width: 576px) {
    .invisible-text-controls label {
        margin-bottom: 0;
        margin-right: 1rem;
        flex-basis: auto;
        /* Allow natural width */
    }
}


.invisible-text-controls input[type="number"],
.invisible-text-controls select {
    width: 100%;
    /* Full width when stacked */
    max-width: 220px;
    /* Max width for select/number input */
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background-color: var(--white-color);
}

@media (min-width: 576px) {

    .invisible-text-controls input[type="number"],
    .invisible-text-controls select {
        width: auto;
        /* Adjust width for side-by-side */
        flex-grow: 1;
    }
}


#generateInvisibleTextBtn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    /* Space above button */
    font-size: 1.05rem;
}

#generateInvisibleTextBtn .fas {
    margin-right: 0.5rem;
}

@media (min-width: 576px) {
    #generateInvisibleTextBtn {
        width: auto;
        /* Auto width for larger screens */
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .invisible-text-controls .control-group:last-of-type {
        /* Remove bottom margin from last control group before button */
        /* margin-bottom: 0; */
    }
}


.output-area-invisible {
    margin-top: 1.5rem;
}

.output-area-invisible .output-box-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

#invisibleOutput {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border-color, #ced4da);
    border-radius: var(--border-radius);
    background-color: var(--light-color, #f8f9fa);
    min-height: 80px;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    resize: vertical;
    font-family: monospace;
    /* Helps to see if *any* character is there */
}

#generateInvisibleTextBtn:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
}

.copy-status-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    min-height: 1.2em;
    /* Reserve space to prevent layout shift */
    text-align: center;
}


/* Content Sections Styling */
.content-section {
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.tool-interactive-area+.content-section {
    margin-top: 3rem;
}

.content-section h2 {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.75rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.alt-bg-tool {
    background-color: var(--section-alt-bg);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-radius: var(--border-radius);
}

.steps-list,
.features-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.steps-list ul {
    padding-left: 20px;
    margin-top: 0.5rem;
}

/* For nested lists */
.steps-list li {
    background-color: #fff;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    position: relative;
    border: 1px solid var(--border-color);
}

.steps-list {
    counter-reset: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 1rem;
    top: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.steps-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
}

.features-list li {
    background-color: #fff;
    padding: 1rem 1rem 1rem 2.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    position: relative;
    border: 1px solid var(--border-color);
}

.features-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    font-size: 1.1rem;
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    background-color: var(--white-color);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}


.related-tools-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}