/* ========================================================
   Lorem Ipsum Generator Specific Toolbar & Colors
   ======================================================== */

.tool-main {
    padding-top: 4rem;
    padding-bottom: 6rem;
    max-width: 900px;
}

/* Tool Hero Block */
.tool-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.tool-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.tool-header .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    flex-shrink: 0;
}

.tool-header .icon-wrapper i {
    width: 28px;
    height: 28px;
}

/* Inner App Structure */
.tool-layout {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* Generator Input Layout */
.generator-controls {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.input-group input {
    width: 120px;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text-main);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus {
    border-color: var(--icon-green-text);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); /* Green ring focus */
}

.generate-btn {
    background-color: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.generate-btn i {
    width: 18px;
    height: 18px;
}

.generate-btn:hover {
    background-color: var(--icon-green);
    color: var(--icon-green-text);
    border-color: var(--icon-green-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.generate-btn:active {
    transform: translateY(0);
}

/* Textarea output Layout */
.textarea-wrapper {
    margin-bottom: 2rem;
}

#textOutput {
    width: 100%;
    min-height: 350px;
    resize: vertical;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.1s ease-out;
}

#textOutput:focus {
    outline: none;
    border-color: var(--icon-green-text); 
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); 
}

/* Utility Actions */
.tool-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.action-btn i {
    width: 18px;
    height: 18px;
}

/* Target primary action explicitly to the green theme matching the vector */
.primary-btn {
    background-color: var(--icon-green-text);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: #16a34a; /* Tailwind Green 600 for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px 0 rgba(34, 197, 94, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background-color: var(--bg);
    border-color: var(--text-muted);
}

/* ========================================================
   Mobile Views
   ======================================================== */
@media (max-width: 600px) {
    .generator-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .input-group input {
        width: 100%;
    }
    .tool-actions {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
    }
    .tool-layout {
        padding: 1.5rem;
    }
}
