/* Main container styles */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 2rem; */
}

/* Input section styles */
/* .input-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
} */

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.topic-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.topic-input:focus {
    border-color: #007bff;
    outline: none;
}

/* Controls section */
.controls-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Button styles */
.option-buttons {
    display: flex;
    gap: 0.5rem;
    /* flex-wrap: wrap; */
    justify-content: center;
}

.option-button {
    padding: 0.5rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Generate button */
.generate-button {
    width: 100%;
    padding: 1rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.generate-button:hover {
    background: #0056b3;
}

.generate-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Output section */
.output-section {
    margin: 25px 0px;

}

.output-content {
    min-height: 200px;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    /* margin-bottom: 1rem; */
}

/* Loading animation */
.loading {
    position: relative;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.word-count {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
}

.error-message {
    color: #dc3545;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    display: none;
}

.error-message.visible {
    display: block;
}