/* Outer dcc.Upload wrapper */
.upload-wrapper {
    display: inline-block;
}

/* Inner clickable box */
.upload-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-testit-blue);
    background-color: var(--light-testit-blue);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.upload-icon {
    color: var(--testit-blue)
}

.upload-icon--spinning {
    animation: upload-spin 0.9s linear infinite;
}

@keyframes upload-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* ── Unified input card ── */
.chat-input-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.chat-input-card:focus-within {
    border-color: var(--testit-blue);
    box-shadow: 0 0 0 3px rgba(99, 153, 210, 0.15);
}

/* Chips inside the card top row */
.attachment-chips--card {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

/* Top row: chips left, font controls right */
.chat-input-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 0 10px;
    min-height: 32px;
}

/* Textarea root wrapper */
.chat-input-root {
    width: 100%;
}

/* Web search: toggle on top, icon below — same size as attach button */
.web-search-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    gap: 2px;
    cursor: pointer;
}

.web-search-icon {
    color: #9ca3af;
}

/* Action bar: attach + web search | send */
.chat-input-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 6px 8px;
    border-top: 1px solid #f1f5f9;
}

.chat-input-action-left {
    display: flex;
    align-items: center;
    gap: 10px;
}





.send-btn {
    background-color: var(--testit-green-web);
    color: var(--background);
    border-radius: 8px;
    padding: 4px 18px;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid var(--testit-green-web);
    height: 34px;
    align-self: center;
    cursor: pointer;
}

/* Keep it green on hover / active */
.send-btn:hover,
.send-btn:active {
    background-color: var(--testit-green-web);
    border-color: var(--testit-green-web);
    color: var(--background);
}

/* Optional: remove blue focus outline / border */
.send-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(71, 178, 122, 0.4);  /* or remove entirely */
}


.attachemnt_chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 7px 3px 10px;
    border-radius: 999px;
    background: var(--light-testit-blue);
    border: none;
    font-size: 11px;
    font-weight: 500;
    color: var(--testit-blue);
    line-height: 1.4;
    max-width: 200px;
    white-space: nowrap;
}

.attachemnt_chip .chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.attachemnt_chip .chip-delete {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.attachemnt_chip .chip-delete:hover {
    opacity: 1;
}
