/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

section {
    background: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.4rem;
}

.description p {
    color: #555;
    margin-bottom: 1rem;
}

.idea-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.idea-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

button[type="button"] {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

#submit-btn {
    background-color: #3498db;
    color: white;
    flex: 1;
    min-width: 120px;
}

#submit-btn:hover {
    background-color: #2980b9;
}

#submit-btn:active {
    transform: scale(0.98);
}

#submit-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ecf0f1;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #2c3e50;
    flex: 1;
    min-width: 120px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.ai-response {
    display: none; /* Initially hidden, will be shown via JS */
}

#ai-response-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    min-height: 60px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

#feedback-btn {
    background-color: #95a5a6;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

#feedback-btn:hover {
    background-color: #7f8c8d;
}

.feedback-form {
    display: none; /* Initially hidden */
}

.feedback-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.feedback-form .form-actions {
    justify-content: flex-start;
}

#feedback-submit-btn {
    background-color: #2ecc71;
    color: white;
    margin-right: 0.5rem;
}

#feedback-submit-btn:hover {
    background-color: #27ae60;
}

#feedback-cancel-btn {
    background-color: #e74c3c;
    color: white;
}

#feedback-cancel-btn:hover {
    background-color: #c0392b;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    button[type="button"] {
        width: 100%;
    }

    #loading-indicator {
        justify-content: center;
    }
}