/* Prompt Input Block Styles */

.prompt-input-block {
    padding-top: 0 !important;
}

.prompt-input-container {
    max-width: 768px;
    margin: 0 auto;
    border: 1px solid rgb(210, 214, 218);
    border-radius: 1rem;
    padding: 1rem;
    background-color: #fff;
}

.prompt-textarea {
    width: 100%;
    min-height: 84px;
    max-height: 220px;
    font-size: 16px;
    line-height: 1.6;
    border: none;
    border-radius: 12px;
    resize: none;
    background-color: #fff;
    font-family: inherit;
    padding: 0;
}

.prompt-textarea:focus {
    border: none;
    outline: none;
    background-color: #fff;
}

.prompt-textarea:disabled {
    background-color: #fff;
    cursor: not-allowed;
}

.prompt-textarea::placeholder {
    color: #adb5bd;
}

.prompt-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.prompt-hint {
    font-size: 13px;
    color: #7b809a;
}

.prompt-submit-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background-color: #16404b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.prompt-submit-btn:hover:not(:disabled) {
    background-color: #194A54;
}

.prompt-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.prompt-submit-btn .material-symbols-rounded {
    font-size: 20px;
}

.prompt-submit-btn .btn-loading {
    display: none;
}

.prompt-submit-btn .btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: prompt-spin 0.6s linear infinite;
}

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

/* Suggestions */
.suggestions-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
}

.suggestion-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(25, 74, 84, 0.08);
    border: 1px solid rgba(25, 74, 84, 0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #194A54;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-pill:hover:not(:disabled) {
    background: rgba(25, 74, 84, 0.15);
    border-color: rgba(25, 74, 84, 0.25);
}

.suggestion-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.suggestion-pill .material-symbols-rounded {
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-hidden {
    display: none;
}

.suggestion-hidden.show {
    display: flex;
}

.view-more-link {
    background: none;
    border: none;
    color: #194A54;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.view-more-link:hover {
    color: #16404b;
}

/* Loading state */
.prompt-input-container.loading .prompt-textarea {
    background-color: #fff;
    cursor: not-allowed;
}
.prompt-input-container:not(.loading) .btn-icon {
    display: inline-flex;
}

.prompt-input-container.loading .btn-icon {
    display: none;
}

.prompt-input-container.loading .btn-loading {
    display: flex !important;
}

.prompt-input-container.loading .suggestion-pill {
    pointer-events: none;
    opacity: 0.5;
}

@media screen and (max-width: 768px) {
    .prompt-input-container {
        margin: 0 12px;
    }

    .suggestions-list {
        max-width: 100%;
        padding: 0 12px;
    }
}
