@tailwind base;
@tailwind components;
@tailwind utilities;

.fi-topbar-ctn {
    border-bottom: 2px solid #22c55e;
}

/* --- info-view ---*/
.info-view .fi-tabs {
    flex-wrap: wrap;
    flex-direction: column;
    place-items: flex-start;
    max-height: 500px;
}

.info-view .fi-tabs .item_tab {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-view .fi-tabs .item_tab .fi-badge {
    color: white;
}

.info-view .fi-tabs .item_tab .number_label {
    font-weight: 600;
}

.info-view .fi-tabs .item_tab img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.info-view .fi-in-entry {
    gap: 0px;
}

.info-view .fi-in-entry-label {
    font-size: 0.6rem;
    opacity: 0.5;
}

.info-view .fi-in-repeatable-item .fi-grid {
    gap: 8px;
}

.info-view .fi-header-heading{
    margin-bottom: 8px;
    color: white;
    opacity: 1;
}





/* -------------------- CHATBOX -----------------------*/

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 80%;
}

.chat-message.mine {
    align-self: flex-end;
}

.chat-message.other {
    align-self: flex-start;
}

.chat-header {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 4px;

    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.chat-user {
    font-weight: 600;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    word-break: break-word;
}

.chat-message.mine .chat-bubble {
    background: #dcf8c6;
    color: #111827;
}

.chat-message.other .chat-bubble {
    background: #f3f4f6;
    color: #111827;
}

.dark .chat-message.mine .chat-bubble {
    background: #14532d;
    color: white;
}

.dark .chat-message.other .chat-bubble {
    background: #374151;
    color: white;
}

.chat-input {
    border-top: 1px solid rgba(128,128,128,.2);
    padding-top: 16px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input textarea {
    width: 100%;
    border-radius: 10px;
    padding: 12px;
    resize: vertical;
    min-height: 100px;
}

.chat-container button {
    align-self: flex-end;

    background: #027E40;
    color: white;

    border: none;
    border-radius: 8px;

    padding: 10px 20px;

    cursor: pointer;
}

.chat-container button:hover {
    opacity: .9;
}

.chat-empty {
    text-align: center;
    opacity: .6;
    padding: 20px;
}