/* General body and container styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.writer-assistant,
.find-more-beats {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.writer-assistant:hover,
.find-more-beats:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Headings and text */
h2, h3 {
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

h3 .star-emoji {
    margin-left: 8px;
    font-size: 1.2rem;
}

p {
    font-size: 0.9rem;
    color: #666;
    margin-top: -10px;
    margin-bottom: 25px;
}

/* Assistant controls layout */
.assistant-controls {
    display: grid;
    gap: 20px;
}

/* Form elements: select, textarea, inputs */
label {
    font-weight: 500;
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

select,
textarea,
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
textarea:focus,
input[type="number"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Settings and button */
.ai-settings {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
}

.ai-settings label {
    flex: 1;
    margin: 0;
}

#ai-generate-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    width: 100%;
}

#ai-generate-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#ai-generate-btn:active {
    background-color: #004085;
    transform: translateY(0);
}

/* Results section */
.ai-results {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
    font-size: 0.95rem;
    color: #555;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Find More Beats section */
.find-more-beats h2 {
    text-align: center;
}

.find-more-beats ul {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

.find-more-beats li {
    margin-bottom: 10px;
}

.find-more-beats a {
    text-decoration: none;
    color: #007bff;
    background-color: #f1f7fe;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.find-more-beats a:hover {
    background-color: #e2effd;
    color: #0056b3;
}