body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    padding-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
    background-color: #fff;
    color: #333;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    color: #000;
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.prompt-container {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
}

textarea#userPrompt {
    width: 100%;
    min-height: 120px;
    max-height: 60vh;
    padding: 20px;
    border: none;
    font-size: 16px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    overflow-y: auto;
}

textarea#userPrompt::placeholder {
    color: #999;
}

.prompt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.template-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.template-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

select#promptType {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: white;
    outline: none;
    min-width: 180px;
}

button#enhanceButton {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background-color: #000;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

button#enhanceButton:hover {
    background-color: #333;
}

button#enhanceButton.button-processing {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
}

button#enhanceButton.button-loading {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.7;
    position: relative;
    overflow: hidden;
}

button#enhanceButton.button-loading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: #000;
    animation: countdown 15s linear forwards;
}

@keyframes countdown {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .prompt-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .template-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    button#enhanceButton {
        width: 100%;
    }
}