* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0D1B2A;
    --panel: #1B263B;
    --accent: #415A77;
    --text: #E0E1DD;
    --text-muted: #778DA9;
    --dot-width: 10px;
    --dot-color: #E0E1DD;
    --speed: 1.5s;
    --winning-bar: #09AC06;
    --warning: #f59e0b;
}

body {
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "JetBrains Mono";
    color: var(--text);
    
}

input, select, button, textarea {
    font-family: "JetBrains Mono";
}

label {
    display: block;
    color: var(--text-muted)
    
}



.start_state {
    background-color: var(--panel);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 400px;
    padding: 24px;
    border-radius: 24px;
    align-self: center;
}

.start_title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 12px;
   
}

input[type=text] {
    width: 100%;
    padding: 12px;
    background-color: var(--bg);
    border: none;
    display: inline-block;
    border-radius: 4px;
    color: var(--text);
}

select {
    background-color: var(--bg);
    border: 1px solid var(--text-muted);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
}

input[type=range] {
    width: 100%;
    accent-color: var(--accent);
    margin-bottom: 12px;
}

#interest_val {
    margin-bottom: 12px;
}



.start_state input[type=submit] {
    background-color: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    display: block;
    width: 100%;
}

.active_session input[type=submit] {
    background-color: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
}

.active_session {
    display: none;
    height: 100vh;
    width: 100%;
    align-self: stretch;
}

.finish_session {
    display: none;
    background-color: var(--panel);
    flex-direction: column;
    padding: 24px;
    border-radius: 24px;
    gap: 12px;
    align-self: center;
    overflow: hidden;
    width: 50vw;
    min-height:50vh;
}

.finish_title {
    text-align: center;
}

.finish_columns {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.finish_left {
    flex: 1;
    padding-right: 4px;
}

.finish_right {
    flex: 1;
    padding-left: 4px;
}

.finish_title {
    font-size: 20px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.finish_label {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.finish_text {
    font-size: 12px;
    color: var(--text);
    margin-top: 8px;
}

.score_bar {
    height: 20px;
    background-color: var(--accent);
    border-radius: 4px;
    display: block;
}

.winning_score_bar {
    height: 20px;
    background-color: var(--winning-bar);
    border-radius: 4px;
    display: block;
}


.parent {
    width: 100%;
    display: flex;
    height: 100vh;
}

.left {
    width: 65%;
    flex: 3;
    padding: 24px;
    display: flex;
    flex-direction: column;
    
}

.right {
    width: 35%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding-top: 40px;
}


.messages-wrapper {
    border-radius: 24px;
    border: 1px solid var(--text-muted);
    background-color: var(--panel);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.messages {
    overflow: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    flex: 1;
    padding-right: 8px;
}

.message {
    max-width: 70%;
    padding: 8px 12px;
    
}

.message.prospect {
    align-self: flex-start;
    background-color: var(--bg);
    border-radius: 12px;
}

.message.user {
    align-self: flex-end;
    background-color: var(--accent);
    border-radius: 12px;
}

.compose {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.compose input {
    flex: 1;
    border-radius: 24px;
    border: 1px solid var(--text-muted);
    background-color: var(--panel);
}

.compose button {
    background-color: var(--accent);
    color: var(--text);
    border: 1px solid var(--text-muted);
    border-radius: 24px;
    padding: 12px 20px;
    cursor: pointer;
}

.information {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: var(--panel);
    border: 1px solid var(--text-muted);
    border-radius: 24px;
    margin-right: 8px;
    min-width: 540px;
}

.classification_label {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.distribution_label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.distribution_value {
    font-size: 12px;
    color: var(--text);
    margin-bottom: 8px;
}

.progress_bar {
    height: 20px;
    background-color: var(--accent);
    border-radius: 4px;
    display: inline-block;
}

.winning_bar {
    height: 20px;
    background-color: var(--winning-bar);
    border-radius: 4px;
    display: inline-block;
}

.warning {
    color: var(--warning);
    font-size: 12px;
}

.objection-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.current_objection {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}

.number_turns_label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.number_turns {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}

.info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.info-value {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}

.interest-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--text-muted);
    opacity: 0.2;
}

.dot.active {
    background-color: var(--accent);
    opacity: 1;
}

.score-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg);
}

.score-label {
    color: var(--text-muted);
}

.score-count {
    color: var(--text);
    font-weight: bold;
}

.finish_session button {
    background-color: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    cursor: pointer;
    width: 100%;
}

.typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
}

.typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    animation: blink 1.4s infinite;
    animation-fill-mode: both;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.2;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0.2;
    }
}

.messages::-webkit-scrollbar {
    width: 8px;
    color: var(--bg);
    
}

.messages::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}

.shake {
    animation: horizontal-shaking 0.3s ease;
}

@keyframes horizontal-shaking {
    0% {transform: translateX(0)}
    25% {transform: translateX(5px)}
    50% {transform: translateX(-5px)}
    75% {transform: translateX(5px)}
    100% {transform: translateX(0);}
}
