﻿.ai-btn {
    display: flex !important;
    align-items: center;
    gap: 7px;
}

.iico {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

.item_active .iico {
    filter: none;
}

#container-body *, #container-body::after, #container-body::before {
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

#ai-field *, #ai-field::after, #ai-field::before {
    line-height: 1.4;
    box-sizing: border-box;
}

#ai-field h1, h2, h3, h4, p {
    margin-top: 0;
    color: #212529;
}

#ai-field ol, #ai-field ul {
  padding-left: 30px;
}

.flex-wrapper {
    display: flex;
    height: calc(100vh - 275px);
    box-sizing: border-box;
    gap: 15px;
    margin-bottom: 60px;
}

.flex-content {
    background: #fff;
    flex-grow: 1;
    padding: 15px;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    border: solid 1px #dee2e6;
}

.flex-sidebar {
    background-color: #fff;
    border-radius: 9px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: solid 1px #dee2e6;
}

.intro-header {
    padding: 30px;
    border-radius: 9px;
}

.prompt-container {
    max-width: 960px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.prompt-response {
    border-radius: 12px;
    padding: 30px;
    height: 100%;
    margin-bottom: 15px;
    font-size: 14px;
    background-color: #f4f7fb;
    overflow-y: auto;
    overflow-x: hidden;
}

    .prompt-response ul, .prompt-response ol {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .prompt-response ul {
        list-style: initial
    }

    .prompt-response h1, .prompt-response h2, .prompt-response h3, .prompt-response h4, .prompt-response h5, .prompt-response h6, .prompt-response p {
        margin-top: 0;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .prompt-response h1 {
        font-size: 20px
    }

    .prompt-response h2 {
        font-size: 18px
    }

    .prompt-response h3 {
        font-size: 16px
    }

    .prompt-response h4 {
        font-size: 14px
    }

.prompt-center {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.intro-header h2 {
    font-size: 22px;
    margin-bottom: 30px;
    text-align: center
}

.intro-header p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 0;
}
/*Prompt input*/
.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 8px;
    column-gap: 8px;
}

    .input-group input {
        flex-grow: 1;
        padding: 10px;
        border: none;
        outline: none;
        font-size: 14px;
    }

        .input-group input:focus {
            background-color: #eff7fe;
        }
/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    font-weight: 700;
    font-size: 14px;
    padding: 15px 40px;
    cursor: pointer;
    border-radius: 50px;
    background-color: transparent;
    transition: background-color 0.3s, border-color 0.3s;
    border-width: 1px;
    border-style: solid;
    border-color: #b0cfe8;
    color: #2196F3;
}

    .tab-button.active {
        background-color: #e3f2fd;
        color: #1976D2;
        border-color: #1976D2;
    }

    .tab-button:hover {
        background-color: #e3f2fd;
        color: #1976D2;
        border-color: #1976D2;
    }
/*.tab-content {
  padding: 20px;
    max-width: 960px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}*/
.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
        flex-grow: 1;
    }

.button-subtle {
    background-color: transparent;
    border: 1px solid #dee2e6;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

    .button-subtle:hover {
        background-color: #f4f7fb;
        border-color: #dee2e6;
    }

    .button-subtle:active {
        background-color: #f4f7fb;
    }

    .button-subtle:hover {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .button-subtle.primary {
        border-color: #b0cfe8;
        color: #2196F3;
    }

        .button-subtle.primary:hover {
            background-color: #e3f2fd;
            color: #1976D2;
            border-color: #1976D2;
        }

        .button-subtle.primary:active {
            background-color: #bbdefb;
            border-color: #1565c0;
        }

    .button-subtle.button-icon {
        display: flex;
        align-items: center;
        gap: 7px;
    }

.text-center {
    text-align: center !important;
}

.prompt-toolbar {
    margin-bottom: 0px;
    display: flex;
    justify-content: flex-end;
    column-gap: 5px;
    margin-top: auto;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    border-radius: 9px;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    right: 0;
    overflow: hidden;
}

    .dropdown-content a {
        padding: 10px 15px;
        text-decoration: none;
        display: block;
        color: inherit;
        font-size: 14px;
    }

        .dropdown-content a:hover {
            background-color: #e3f2fd;
        }

.dropdown:hover .dropdown-content {
    display: block;
}

.hidden {
    display: none;
}

.close-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    /* SVG Icon Styles */
    .close-button svg {
        width: 100%;
        height: 100%;
        fill: #555;
        transition: fill 0.2s ease;
    }
    /* Hover Effect */
    .close-button:hover {
        background: #eee;
    }

        .close-button:hover svg {
            fill: #1976D2;
        }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px
}

.sidebar-header-title {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-body {
    padding: 15px;
    width: 460px;
    position: relative;
    display: flex;
    overflow-y: hidden;
}

.sidebar-prompt-list {
    list-style: none;
    padding: 0;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 100vh;
    position: relative;
    scrollbar-color: default;
    scrollbar-width: thin;
    margin-bottom: 15px
}

    .sidebar-prompt-list li .user-item {
        border: 1px solid #dee2e6;
        padding: 8px;
        border-radius: 6px;
        color: #6f6f6f;
    }

        .sidebar-prompt-list li .user-item:hover {
            background-color: #f4f7fb;
        }

        .sidebar-prompt-list li .user-item .prompt-link {
            color: inherit;
            text-decoration: none;
            display: block;
            font-size: 14px;
        }

    .sidebar-prompt-list .time-stamp {
        color: #a8a6f4;
        font-size: 13px;
        margin-top: 20px;
    }

.sidebar-prompt-action {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 5px;
    opacity: 0;
}

.sidebar-prompt-list li.list-item:hover .sidebar-prompt-action {
    opacity: 1;
}

.sidebar-prompt-action > a {
    color: inherit;
    text-decoration: none;
    font-size: 12px;
}

    .sidebar-prompt-action > a:hover, .sidebar-prompt-action > a:focus {
        color: #06f;
    }

.suggestive-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-left: 15px;
}

    .suggestive-list .list-action {
        display: inline-block;
        background: #f4f7fb;
        padding: 8px 13px;
        border-radius: 6px;
        color: inherit;
        text-decoration: none;
        border: solid 1px #e0ebf9;
    }

        .suggestive-list .list-action:hover, .suggestive-list .list-action:focus, .suggestive-list .list-action:active {
            background: #eaeff6;
        }
/*Modal*/
.modal {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    width: 80%;
    max-width: 600px;
    border-radius: 9px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 15px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.modal-title {
    color: inherit;
    font-size: 14px;
    font-weight: 700;
}

.modal-footer {
    padding: 15px;
    text-align: right;
}

.px-3 {
    padding-left: 30px;
    padding-right: 30px;
}

.input-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-weight: 400;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    box-sizing: border-box;
}

    .input-control:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
    }

.input-select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    padding-right: 40px;
    font-weight: 400;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    box-sizing: border-box;
    background-image: url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxNiAxNic+PHBhdGggZmlsbD0nbm9uZScgc3Ryb2tlPScjMzQzYTQwJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnIHN0cm9rZS13aWR0aD0nMicgZD0nTTIgNWw2IDYgNi02Jy8+PC9zdmc+);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

    .input-select:focus {
        color: #212529;
        background-color: #fff;
        border-color: #86b7fe;
        outline: 0;
    }
/*Student Summary*/
.summary-panel {
    background: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    border: solid 1px #dee2e6;
    margin-top: 7px;
    margin-bottom: 15px;
}

    .summary-panel h3 {
        font-size: 14px;
    }

    .summary-panel ol, .summary-panel ul {
        padding-left: 30px;
    }

    .summary-panel ul {
        list-style: disc
    }

.summary-panel-header {
    padding: 10px 15px;
    background: #f4f7fb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-panel-body {
    flex-grow: 1;
    padding: 15px;
    /*display: flex;*/
}

.summary-panel-content {
    position: relative;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.summary-header {
    display: flex;
    align-items: self-end;
    line-height: 1;
    gap: 3px;
    color: #005588;
    font-size: 13px;
    font-weight: bold;
}

.beta-badge {
    background-color: #f35d5d;
    color: #ffffff;
    padding: 5px;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1;
    font-weight: bold;
}



.summary-panel-footer {
    padding: 15px;
    background: #f4f7fb;
}

#summary-container {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.loading-animation {
    display: none;
}

    .loading-animation::after {
        content: "";
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid #007bff;
        border-top-color: #fff;
        animation: spin 1s linear infinite;
        margin-right: 10px;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-field-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.field-item {
}

    .field-item.option-value {
        width: 55px;
        font-weight: bold;
    }

    .field-item .input-control {
        width: 80px;
        text-align: center;
    }

.hidden-row {
    display: none;
}

.field-label {
    font-weight: 700;
    text-align: center
}

.badge-list-group {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
}

.badge-list-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    text-decoration: none;
    justify-content: space-between; /* Distribute space evenly */
}

    .badge-list-item:last-child {
        border-bottom: none;
    }

.badge {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    /*font-size: 0.8em;*/
    color: #555;
    line-height: 1;
    font-weight: 700
}

    .badge.primary {
        background-color: #bbdefb;
        color: #1976d2;
    }

    .badge.success {
        background-color: #c8e6c9;
        color: #388e3c;
    }

    .badge.warning {
        background-color: #ffeeb4;
        color: #b28a06;
    }

    .badge.danger {
        background-color: #ffcdd2;
        color: #d32f2f;
    }


/*Score progress*/
.photo-container {
    border: solid 1px #c0d0ed;
    padding: 5px;
    border-radius: 6px;
    background-color: #fff;
    margin-bottom: 10px;
    /*width: 130px;*/
    height: 160px;
    position: relative;
    overflow: hidden;
}

    .photo-container .student-photot {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }


/*Progress meter*/

.progress-container {
    border: solid 1px #c0d0ed;
    padding: 10px;
    border-radius: 6px;
    background-color: #f0f5fe;
}

    .progress-container h4 {
        font-size: 12px;
        text-align: center;
        font-weight: 700;
        margin-top: 5px;
        color: #797979;
    }

.progress-meter {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 0px;
}

circle {
    fill: none;
    stroke-width: 10;
}

.background {
    stroke: #e6e6e6;
}

.foreground {
    stroke: #4caf50; /* Default color */
    stroke-dasharray: 314; /* Circumference of the circle (2 * pi * radius) */
    stroke-dashoffset: 314; /* Initially set to full (100% progress), will reduce with progress */
    transform: rotate(-90deg); /* Start the stroke from the top (12 o'clock) */
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 2s ease, stroke 2s ease; /* Animation for stroke fill and color */
}

.score-text {
    font-size: 34px;
    fill: #333;
    font-weight: bold;
}



/*like/dislike buttons*/

.feedback-footer {
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reaction-container {
    display: flex;
    gap: 10px;
}

.thumb-icon {
    width: 20px;
    height: 20px;
    fill: #858585;
    transition: fill 0.3s ease;
}

.reaction-container button {
    border: 0;
    outline: 0;
    cursor: pointer;
    background: none;
}

    .reaction-container button.active .thumb-icon {
        fill: #007bff;
    }

.thumb-up-container, .thumb-down-container {
    display: flex;
    gap: 5px;
    align-items: center;
}

.count {
    display: none;
}

    .count.visible {
        display: inline-block;
    }
