﻿/* Container Styling */
.c7, .c8, .c9 {
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    min-height: 300px;
    height: 800px;
    display: flex;
    flex-direction: column;
}

    .c7 h5,
    .c8 h5,
    .c9 h5,
    .c9 h5 {
        margin-bottom: 15px;
        border-bottom: 2px solid #ccc;
        padding-bottom: 5px;        
        display: flex; /* make h5 a flex container */
        align-items: center; /* vertically center all content */
        justify-content: space-between;
        min-height: 48px;
    }


/* Background for transcription text only */
#transcriptionText {
    background-color: #fb5151;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.caller-details-box {
    background-color: #f0f8ff;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.caller-number {
    font-weight: bold;
    color: #333; /* Dark gray, or change to any color you prefer */
    font-size: 13px; /* Optional: adjust size if needed */
    margin-left: 8px;
}
.caller-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}
.call-duration {
    font-size: 12px;
    color: #999;
}
.call-time {
   /* margin-left: 60px; 
    display: inline-block;*/
    color: #666; 
    font-weight: normal;
    font-size: 12px;
}

.caller-summary-box {
    background-color: #EBEBEB;
    padding: 12px 14px;
    border-radius: 6px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line; /* Handles newlines from summary text */
    color: #333;

    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}
.log-row{
    display: flex;
   justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
    width: 100%;
}
    .log-row .log-category {
        font-size: 13px;
        font-weight: 500;
        margin-left: auto;
        text-align: right;
    }

.log-status {
    font-size: 13px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 500;
    margin-left: -8px;
}

    /* Dynamic background colors */
    .log-status.in-call {
        background-color: #e0f7fa;
        color: #00796b;
    }

    .log-status.transferred {
        background-color: #fff3e0;
        color: #ef6c00;
    }

    .log-status.ended {
        background-color: #fce4ec;
        color: #c2185b;
    }
.call-log-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, border-left 0.2s;
    border-left: 4px solid transparent;
    background-color: white;
}
    .call-log-item:hover {
        background-color: #f4f4ff !important;
        border-left: 4px solid #c1bfff;
    }
    .call-log-item.selected {
    background-color: #eae9ff !important;
    border-left: 4px solid #7D79FB;
    font-weight: 500;
}
.call-logs-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0; /* Important for flex layouts */
}

    /* Optional: Style for scrollbar (WebKit only) */
    .call-logs-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .call-logs-scroll::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    word-wrap: break-word;
    font-size: 14px;
}

.chat-user {
    align-self: flex-start;
    text-align: left;
}

.chat-agent {
    align-self: flex-end;
    text-align: left;
}

.bubble {
    padding: 10px 14px;
    border-radius: 16px;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    line-height: 1.4;
    background-color: #f0f0f0;
}

.chat-agent .bubble {
    background-color: #d1e7ff;
}
.chat-agent .bubble_red {
    background-color: #fb5151;
}


.chat-user .bubble {
    background-color: #e2ffe2;
}

/* Optional emotion tag for user */
.emotion-label {
    font-size: 16px;
    margin-top: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.emotion-happy {
    color: #28a745; /* green */
}

.emotion-sad {
    color: #f7091f; /* red */
}

.emotion-fear {
    color: #6c757d; /* gray */
}

.emotion-disgust {
    color: #8b0000; /* dark red */
}

.emotion-anger {
    color: #dc3545; /* red */
}

.emotion-excitement {
    color: #ffc107; /* yellow/orange */
}

.emotion-neutral {
    color: #6c757d; /* gray */
}
/* Add emoji with ::before */
.emotion-happy::before {
    content: "😊";
}

.emotion-sad::before {
    content: "😢";
}

.emotion-fear::before {
    content: "😨";
}

.emotion-disgust::before {
    content: "🤢";
}

.emotion-anger::before {
    content: "😠";
}

.emotion-excitement::before {
    content: "😲";
}

.emotion-neutral::before {
    content: "😐";
}

.chat-message.system {
    align-self: center; /* Center horizontally */
    background-color: #eeeeee;
    color: #666;
    font-style: italic;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 60%;
    margin: 12px auto; /* Center with vertical spacing */
    text-align: center;
    font-size: 13px;
    user-select: none;
}
.chat-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
   
}
.emotion-chart-container {
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Group log-category and log-status side by side */

.call-log-item .log-category {
    /*float: right;*/
    margin-left: auto;
    /*margin-right: 15px;*/
    font-size: 14px;
    margin-top: 2px;
    text-align: right;
}

.call-filter {
    float: right;
    margin-left: 10px;
}

    .call-filter .filter-item {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: background-color 0.2s ease, transform 0.1s ease;
        font-size : 16px;
    } 

        .call-filter .filter-item.active {
            color: #7D79FB;
            background-color: white;
        }

    .call-filter i {
        font-size: 16px;
    }

    .call-filter img {
        width: 24px;
        height: 24px;
    }
.resolution-resolved {
    color: #45f3a3;
}
.resolution-unresolved {
    color: #fb5151;
}
/* Hide text, show Bootstrap filter icon */
.icon-only {
    /*margin-right: 100px;*/
    text-indent: -9999px; /* hides the option text */
    -webkit-appearance: none; /* remove default arrow Chrome/Safari */
    -moz-appearance: none; /* Firefox */
    appearance: none;
    border: none;
    background-color: transparent;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='1.5' class='bi bi-funnel' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 1.5a.5.5 0 0 1 .5.5v1.972l4.805 5.344a.5.5 0 0 0 .146.105l.39.195v3.89a.5.5 0 0 0 .5.5h2a.5.5 0 0 0 .5-.5v-3.89l.39-.195a.5.5 0 0 0 .146-.105L14 3.972V2a.5.5 0 0 1 .5-.5h-13z'/%3E%3C/svg%3E") no-repeat center;
    background-size: 14px 14px;
    cursor: pointer;
    font-size: 14px;
    width: 20px;
}
.hidden {
        display: none !important;
}
#resolutionFilterWrapper {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

#answeredFilterWrapper {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}