﻿/*Jimmy studio*/
.rz-layout .rz-body {
    overflow: auto;
}

.rz-tabview-panel {
    overflow-y: auto;
    overflow-x: hidden;
    height: 76.5vh;
}

/*J1mmy history*/
.main-view {
    display: grid;
    grid-template-columns: 65% calc(35% - 1rem);
    gap: 1rem;
}

.row.g-3 {
    margin-top: 0.5rem;
}

.col-md-5, .col-md-7 {
    transition: all 0.2s ease;
}

.radzen-card {
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.radzen-tabs {
    --rz-primary: #ffbebe;
}


/*J1mmy history detail item*/
.detail-view p {
    margin-bottom: 0.5rem;
    color: #444;
    line-height: 1.35;
}

.detail-view .total {
    font-weight: 700;
    color: #e85a5a;
}

.card-view {
    padding: 1rem;
    min-height: 400px;
    background-color: #fffdfc;
    border: 1px solid #eee;
    max-height: 71vh;
    position: sticky;
    top: 0;
    overflow-y: scroll;
}

.history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/*J1mmy history list item*/
.history-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    background-color: #fffefc;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 0 3px rgba(0,0,0,0.05);
}

    .history-item:hover {
        background-color: #dee8f9;
        transform: scale(1.01);
    }

    .finetune {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        position: relative
    }

    .finetune-message > * {
        margin: 0 !important;
    }

    .finetune-message ft-header{

    }

    .finetune-message .ft-content {
        margin-top: 0.25rem;
        line-height: 1.25rem;
    }

    .finetune-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        display: none;
        margin-top: 10px;
    }

    .history-item:hover > .finetune-button {
        display: block;
    }

    .finetune:hover > .finetune-button {
        display: block;
    }

    .history-item.active {
        background-color: #dee8f9;
    }

        .history-item.active:hover {
            background-color: #dee8f9;
            transform: scale(1.01);
        }


    .history-item .top-row {
        display: flex;
        gap: 1rem;
        font-size: 0.85rem;
        color: #888;
    }

    .history-item .top {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .history-item .bottom-row {
        display: flex;
        justify-content: space-between;
    }

    .history-item .model {
        font-weight: 600;
        color: #555;
    }

    .history-item .price {
        font-weight: 500;
        color: #444;
    }

    .history-item .question, .history-item .answer {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.95rem;
    }

    .history-item .question {
        font-weight: 600;
        color: #222;
        margin-top: .4rem;
        font-size: 1rem;
    }

    .history-item .answer {
        color: #555;
        margin-top: .15rem;
    }

    .history-item .metrics {
        margin-top: 0.4rem;
        font-size: 0.8rem;
        color: #777;
        display: flex;
        gap: 1rem;
    }
