/* Assist.razor - SfMention Integration Styles */

html, body, .assist-wrapper {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.assist-wrapper {
    display: flex;
    flex-direction: column;
}

/* Custom Footer Styles */
.custom-prompt-footer {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    align-items: flex-end;
}

.prompt-input-container {
    flex: 1;
    position: relative;
}

.prompt-textarea {
    width: 100%;
    min-height: 60px;
    max-height: 150px;
    resize: vertical;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.prompt-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.1);
}

.send-button {
    height: 40px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mention Item Template Styles */
.mention-item-template {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.mention-icon {
    font-size: 1.5rem;
    min-width: 28px;
    text-align: center;
}

.mention-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mention-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mention-description {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .custom-prompt-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .send-button {
        width: 100%;
        justify-content: center;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .custom-prompt-footer {
        background: #2d2d2d;
        border-top-color: #444;
    }

    .prompt-textarea {
        background: #1a1a1a;
        border-color: #444;
        color: #e0e0e0;
    }

    .prompt-textarea:focus {
        border-color: #64b5f6;
        box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
    }

    .mention-name {
        color: #e0e0e0;
    }

    .mention-description {
        color: #999;
    }
}
