@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

.content-title,
.sidebar-title {
    font-family: 'IBM Plex Serif', serif
}

.empty-state,
.line,
.no-results,
.results-count {
    text-align: center
}

.complete-content,
.main-container,
.tab-container {
    backdrop-filter: blur(10px)
}

.main-container {
    display: flex;
    height: 100vh
}

.sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1a1a1a
}

.sidebar-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0
}

.sidebar-subtitle {
    font-size: 14px;
    color: #888;
    margin: 4px 0 0;
    font-weight: 400
}

.filters-title {
    font-size: 16px;
    font-weight: 600;
    color: #cccccc;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px
}

.filter-select option {
    background: #000;
    color: #cccccc;
    padding: 8px
}

.filter-input::placeholder {
    color: #666
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: .2s;
    flex: 1
}

.btn-primary {
    background: #6264A7;
    color: #fff
}

.btn-primary:hover {
    background: #764ba2
}

.btn-secondary {
    background: #1a1a1a;
    color: #888
}

.btn-secondary:hover {
    background: #333
}

.list-container,
.survey-list-container {
    flex: 1;
    overflow-y: auto
}

.item,
.survey-item {
    background: #141414;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden
}

.item::before,
.survey-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6264A7, #764ba2);
    transform: scaleX(0);
    transition: transform .3s
}

.item:hover,
.survey-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(98, 100, 167, .15);
    border-color: #333
}

.item:hover::before,
.survey-item:hover::before {
    transform: scaleX(1)
}

.item.active,
.survey-item.active {
    background: linear-gradient(135deg, #6264A7 0, #764ba2 100%);
    color: #fff;
    border-color: #6264A7;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(98, 100, 167, .3)
}

.item.active::before,
.survey-item.active::before {
    transform: scaleX(1);
    background: rgba(255, 255, 255, .2)
}

.item-header,
.survey-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px
}

.item-title,
.survey-user {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff
}

.item-date,
.survey-date {
    font-size: 11px;
    color: #888;
    white-space: nowrap
}

.item-subtitle,
.survey-topic {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
    margin-bottom: 6px
}

.item-meta,
.survey-campaign {
    font-size: 11px;
    color: #cccccc;
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px
}

.item.active .item-subtitle,
.item.active .item-title,
.survey-item.active .survey-topic,
.survey-item.active .survey-user,
.teams-control-btn.enabled .btn-icon svg {
    color: #fff
}

.item.active .item-date,
.survey-item.active .survey-date {
    color: rgba(255, 255, 255, .8)
}

.item.active .item-meta,
.survey-item.active .survey-campaign {
    background: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9)
}

@media (max-width:768px) {
    body {
        height: auto;
        overflow: auto
    }

    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh
    }

    .sidebar {
        width: 100%;
        max-height: 400px;
        overflow-y: auto
    }

    .content-area {
        overflow-y: visible
    }

    .content-scroll {
        padding: 20px
    }

    .filter-row {
        flex-direction: column;
        gap: 12px
    }

    .filter-row .filter-group {
        margin-bottom: 0
    }
}

#section-complete,
body {
    height: 100vh;
    background: #000000
}

.content-area::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.survey-list-container::-webkit-scrollbar {
    width: 6px
}

.content-area::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.survey-list-container::-webkit-scrollbar-track {
    background: #0a0a0a
}

.content-area::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.survey-list-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px
}

.content-area::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover,
.survey-list-container::-webkit-scrollbar-thumb:hover {
    background: #444
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'IBM Plex Sans', sans-serif;
    overflow: hidden
}

.tab-container {
    background: rgba(10, 10, 10, .95);
    border-bottom: 1px solid #1a1a1a;
    padding: 0 24px;
    display: flex;
    gap: 0
}

.tab-button {
    padding: 16px 24px;
    background: 0 0;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: .3s;
    border-bottom: 3px solid transparent;
    position: relative
}

.tab-button:hover {
    color: #cccccc;
    background: rgba(98, 100, 167, .05)
}

.tab-button.active {
    color: #6264A7;
    border-bottom-color: #6264A7;
    background: rgba(98, 100, 167, .1)
}

.main-container {
    display: flex;
    height: calc(100vh - 57px);
    width: 100%;
    margin: 0 auto;
    background: rgba(0, 0, 0, .95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1)
}

.sidebar {
    width: 420px;
    background: linear-gradient(180deg, #0a0a0a 0, #141414 100%);
    border-right: 1px solid #1a1a1a;
    overflow-y: auto;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column
}

.sidebar-content {
    padding: 24px;
}

.filters-section {
    background: #141414;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px
}

.filter-group {
    margin-bottom: 16px
}

.filter-group:last-child {
    margin-bottom: 0
}

.filter-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6264A7;
    margin-bottom: 6px
}

#site,
.filter-row,
.panel.active,
.stats-bar {
    display: flex
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 14px;
    background: #000;
    color: #cccccc;
    transition: border-color .2s;
    box-sizing: border-box
}

.filter-input:focus,
.filter-select:focus {
    outline: 0;
    border-color: #6264A7;
    box-shadow: 0 0 0 3px rgba(98, 100, 167, .1)
}

.filter-row {
    gap: 8px;
    align-items: end
}

.filter-row .filter-group {
    flex: 1;
    margin-bottom: 0
}

.results-count {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    padding: 8px;
    background: rgba(98, 100, 167, .05);
    border-radius: 6px
}

.content-area {
    flex: 1;
    overflow-y: auto;
    background: #000;
    display: flex;
    flex-direction: column
}

.content-scroll {
    padding: 32px;
    flex: 1
}

.content-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a1a1a
}

.content-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0
}

.content-subtitle {
    font-size: 16px;
    color: #888;
    margin: 8px 0 0
}

.empty-state {
    padding: 80px 20px;
    color: #888
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: .5
}

.empty-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px
}

.empty-subtext {
    font-size: 14px;
    opacity: .8
}

.answer-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: .2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .02)
}

.answer-card:hover {
    box-shadow: 0 4px 12px rgba(98, 100, 167, .08);
    border-color: #333
}

.answer-question,
.stats-bar {
    border-bottom: 1px solid #1a1a1a
}

.answer-question {
    background: linear-gradient(135deg, #141414 0, #1a1a1a 100%);
    padding: 20px 24px;
    font-weight: 600;
    color: #cccccc;
    font-size: 16px
}

.answer-response {
    padding: 24px;
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
    background: #0a0a0a
}

.stats-bar {
    background: #141414;
    padding: 16px 32px;
    font-size: 14px;
    color: #888;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0
}

.campaign-summary h3,
.stats-count {
    color: #cccccc;
    font-weight: 600
}

.campaign-summary {
    background: linear-gradient(135deg, #141414 0, #1a1a1a 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #1a1a1a
}

.campaign-summary h3 {
    margin: 0 0 16px;
    font-size: 18px
}

.campaign-summary p {
    margin: 0;
    line-height: 1.6;
    color: #cccccc
}

.no-results {
    padding: 40px 20px;
    color: #888
}

.no-results-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: .5
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid #6264A7;
    border-radius: 50%;
    animation: 1s linear infinite spin
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.panel,
.status-icon {
    display: none
}

.content-area::-webkit-scrollbar,
.list-container::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 6px
}

.content-area::-webkit-scrollbar-track,
.list-container::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: #0a0a0a
}

.content-area::-webkit-scrollbar-thumb,
.list-container::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px
}

.content-area::-webkit-scrollbar-thumb:hover,
.list-container::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #444
}

@keyframes fly-up {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(-150vh)
    }
}

.fly-off {
    animation: .5s forwards fly-up
}

#site {
    flex-direction: row
}

.articles-container {
    padding: 12px
}

.help-desk {
    width: 100%;
    max-width: 300px;
    margin-left: auto
}

@media screen and (orientation:portrait) {
    .hide-on-mobile {
        display: none
    }
}

@media screen and (orientation:landscape) {
    .hide-on-mobile {
        display: block
    }
}

#sophia_border_wrapper {
    position: relative;
    display: inline-block;
    border: 5px solid #6264A7;
    border-radius: 50%;
    background-color: #764ba2;
    box-sizing: content-box
}

#sophia_border_wrapper.listening {
    border: 5px solid transparent
}

#sophia_border_wrapper.listening::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 5px solid transparent;
    border-radius: 50%;
    background: linear-gradient(90deg, #6264A7 0, #764ba2 50%, #6264A7 100%);
    animation: 1.5s linear infinite spin-disk
}

#sophia_img {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0 auto;
    border-radius: 50%
}

@keyframes spin-disk {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

.teams-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0
}

.teams-controls-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    background-color: rgba(0, 0, 0, .05);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1)
}

.teams-control-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: .2s;
    background-color: transparent
}

.teams-control-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    transition: .2s
}

.teams-control-btn .btn-icon svg {
    width: 24px;
    height: 24px;
    color: #888
}

.teams-control-btn .btn-label {
    font-size: 12px;
    margin-top: 6px;
    color: #888
}

.teams-control-btn.enabled .btn-icon {
    background-color: #6264a7
}

.teams-control-btn.enabled .btn-label {
    color: #6264a7;
    font-weight: 500
}

.teams-control-btn.disabled {
    opacity: .7
}

#sophia_controls_mute.enabled .btn-icon,
#sophia_controls_speech_stop.enabled .btn-icon {
    background-color: #d9373e
}

#sophia_controls_mute.enabled .btn-label,
#sophia_controls_speech_stop.enabled .btn-label {
    color: #d9373e
}

#btn-submit.enabled .btn-icon {
    background-color: #13a10e
}

#btn-submit.enabled .btn-label {
    color: #13a10e
}

.status-indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px
}

.container {
    width: 100%;
    max-width: 600px;
    height: 70vh;
    position: relative;
    overflow: hidden
}

.questions-container {
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 35vh 0;
    scrollbar-width: none
}

.questions-container::-webkit-scrollbar {
    display: none
}

.line {
    padding: 15px 20px;
    font-size: 18px;
    line-height: 1.5;
    scroll-snap-align: center;
    transition: .3s;
    cursor: pointer;
    opacity: .6;
    margin: 10px 0
}

.line.active {
    font-size: 24px;
    color: #fff;
    font-weight: 700;
    opacity: 1
}

.controls {
    position: fixed;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px
}

.progress-container {
    width: 100%;
    background-color: #1a1a1a;
    height: 12px;
    border-radius: 25px
}

.progress-bar {
    width: 0%;
    height: 100%;
    transition: width .5s linear, background-color .5s linear;
    border-radius: 25px
}

.floating-widget {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 256px;
    height: 256px;
    filter: drop-shadow(0px 5px 14px #000000)
}

#section-main {
    height: 90vh;
    display: flex;
    flex-direction: column
}

.main-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden
}

.question-and-answer-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    min-height: 0
}

.question-display {
    flex-shrink: 0;
    margin-bottom: 30px
}

.answer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 200px;
    max-height: none
}

.controls-area {
    width: 960px;
    flex-shrink: 0;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, .1);
    padding: 20px
}

.progress-area {
    width: 960px;
    flex-shrink: 0;
    padding: 15px 20px
}

.checkbox-option,
.multiple-choice-option {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 12px;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
    background-color: #000
}

.checkbox-option:hover,
.multiple-choice-option:hover {
    border-color: #6264a7;
    background-color: #1a1a1a
}

.checkbox-option.selected,
.multiple-choice-option.selected {
    border-color: #6264a7;
    background-color: rgba(98, 100, 167, .1)
}

.checkbox-option input[type=checkbox],
.multiple-choice-option input[type=radio] {
    margin-right: 12px;
    transform: scale(1.2)
}

.option-text {
    font-size: 16px;
    line-height: 1.4
}

.agree-disagree-container,
.true-false-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0
}

.agree-disagree-option,
.true-false-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    border: 3px solid #1a1a1a;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
    background-color: #000;
    width: 120px
}

.essay-input,
.fill-blank-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #1a1a1a;
    transition: border-color .3s;
    resize: vertical
}

.agree-disagree-option:hover,
.true-false-option:hover {
    border-color: #6264a7;
    background-color: #1a1a1a
}

.agree-disagree-option.selected,
.true-false-option.selected {
    border-color: #6264a7;
    background-color: rgba(98, 100, 167, .1)
}

.agree-disagree-option input[type=radio],
.true-false-option input[type=radio] {
    margin-bottom: 8px;
    transform: scale(1.3)
}

.agree-disagree-label,
.true-false-label {
    font-size: 18px;
    font-weight: 500
}

.fill-blank-input {
    font-size: 16px;
    border-radius: 8px;
    min-height: 120px;
    max-height: 300px;
    background-color: #0a0a0a;
    color: #ffffff
}

.essay-input {
    font-size: 16px;
    border-radius: 8px;
    max-height: 100px;
    font-family: inherit;
    background-color: #0a0a0a;
    color: #ffffff
}

.refresh-button,
.scale-option {
    cursor: pointer;
    transition: .3s
}

.essay-input:focus,
.fill-blank-input:focus {
    outline: 0;
    border-color: #6264a7
}

.scale-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0
}

.scale-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap
}

.scale-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    background-color: #000;
    font-size: 16px;
    font-weight: 500;
    color: #fff
}

.scale-option:hover {
    border-color: #6264a7;
    background-color: #1a1a1a;
    transform: scale(1.1)
}

.scale-option.selected {
    border-color: #6264a7;
    background-color: #6264a7;
    color: #fff;
    transform: scale(1.2)
}

.scale-option input[type=radio] {
    display: none
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    font-size: 14px;
    color: #888;
    margin-top: 10px
}

.scale-label-left {
    text-align: left
}

.scale-label-right {
    text-align: right
}

.question-format-label {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    font-style: italic
}

.speech-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    font-style: italic
}

.navigation-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px
}

.question-counter {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px
}

.complete-icon,
.complete-title {
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3)
}

#section-complete {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #6264A7 0%, #764ba2 100%)
}

.complete-content {
    max-width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, .3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    animation: .6s ease-out fadeInUp
}

.complete-icon {
    font-size: 80px;
    color: #4caf50
}

.complete-title {
    font-size: 36px;
    font-weight: 700
}

.complete-message {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: .9
}

.complete-response {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, .2);
    border-radius: 10px;
    border-left: 4px solid #4caf50;
    font-style: italic
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(45deg, #4caf50, #45a049);
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, .3);
    text-decoration: none
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, .4);
    background: linear-gradient(45deg, #45a049, #4caf50)
}

.refresh-button:active {
    transform: translateY(0)
}

.refresh-icon {
    width: 20px;
    height: 20px
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.confetti-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999
}

/* Additional CSS for AI Analysis Features */
/* Add this to your existing surveys_admin.css file */

/* AI Analysis Card Styling */
.ai-analysis {
    background: rgba(98, 100, 167, .05);
    border: 1px solid #6264A7;
    position: relative;
}

.ai-analysis .answer-question {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #6264A7, #764ba2);
}

.ai-icon {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.analysis-date {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    font-weight: normal;
}

/* Loading State for Survey Analysis */
.ai-analysis-loading {
    background: #141414;
    border: 1px solid #1a1a1a;
}

.survey-loading-animation {
    text-align: center;
    padding: 20px;
}

.survey-loading-animation img {
    margin-bottom: 12px;
}

.survey-loading-animation p {
    margin: 0;
    color: #888;
    font-size: 14px;
}

/* Secondary Button Style */
.btn-secondary {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #444;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stats Bar Button Spacing */
.stats-bar button {
    margin-left: 8px;
}

/* Enhanced Answer Card for AI Analysis */
.ai-analysis .answer-response {
    line-height: 1.6;
    color: #cccccc;
    background: #0a0a0a;
}

.ai-analysis .answer-response p {
    margin-bottom: 12px;
}

.ai-analysis .answer-response p:last-child {
    margin-bottom: 0;
}

.ai-analysis .answer-response ul,
.ai-analysis .answer-response ol {
    margin: 8px 0;
    padding-left: 24px;
}

.ai-analysis .answer-response li {
    margin-bottom: 6px;
}

/* Loading Animation Styles */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.loading-animation {
    text-align: center;
    max-width: 500px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #141414;
    color: #888;
    transition: all 0.3s ease;
}

.loading-step.active {
    background: rgba(98, 100, 167, .1);
    color: #6264A7;
    transform: scale(1.02);
    animation: pulse 2s infinite;
}

.loading-step.completed {
    background: rgba(76, 175, 80, .1);
    color: #4caf50;
}

.step-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive Design for AI Features */
@media (max-width: 768px) {
    .ai-analysis .answer-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .analysis-date {
        font-size: 11px;
    }

    .stats-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stats-bar button {
        margin-left: 0;
    }
}

.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.loading-animation {
    text-align: center;
    max-width: 500px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #141414;
    color: #888;
    transition: all 0.3s ease;
}

.loading-step.active {
    background: rgba(98, 100, 167, .1);
    color: #6264A7;
    transform: scale(1.02);
    animation: pulse 2s infinite;
}

.loading-step.completed {
    background: rgba(76, 175, 80, .1);
    color: #4caf50;
}

.step-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.ai-analysis {
    background: rgba(98, 100, 167, .05);
    border: 1px solid #6264A7;
}

.ai-icon {
    font-size: 20px;
    margin-right: 8px;
}

.analysis-date {
    font-size: 12px;
    color: rgba(255, 255, 255, .8);
    float: right;
    font-weight: normal;
}

.ai-analysis-loading {
    background: #141414;
    border: 1px solid #1a1a1a;
}

.user-loading-animation {
    text-align: center;
    padding: 20px;
}

.btn-secondary {
    background: #333;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #444;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.survey-summary {
    margin-bottom: 20px;
    padding: 20px;
    background: #141414;
    border-radius: 8px;
}

.survey-summary h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
}

.survey-summary div {
    color: #cccccc;
    line-height: 1.6;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.stats-bar button {
    margin-left: 8px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}