:root {
    --bg: #0b0f0c;
    --fg: #b7f7c4;
    --dim: #6bbf84;
    --accent: #a7ffb0;
    --error: #ff6b6b;
    --link: #8dfcde;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 15px/1.5 "Fira Code", "SFMono-Regular", Consolas, Monaco, monospace;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding-left: 6vw;
}

/* 🔹 MAIN TERMINAL */
.wrap {
    width: 60vw;
    height: 75vh;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(167, 255, 176, 0.2);
    animation: crtPulse 3s ease-in-out infinite alternate;
}

@keyframes crtPulse {
    0% { box-shadow: 0 0 30px rgba(167,255,176,0.2); }
    100% { box-shadow: 0 0 60px rgba(167,255,176,0.3); }
}

.titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: var(--dim);
    user-select: none;
    font-size: 13px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.name { margin-left: 8px; opacity: .8; }
.ca-label span { color: var(--accent); }

.term {
    position: absolute;
    inset: 44px 12px 12px 12px;
    padding: 14px;
    overflow: auto;
    border-radius: 10px;
}

.line { white-space: pre-wrap; word-break: break-word; }
.prompt { color: var(--accent); }
.cursor { display: inline-block; width: 10px; margin-left: 2px; }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.footer-tip {
    position: absolute;
    bottom: 10px;
    right: 14px;
    color: var(--dim);
    font-size: 12px;
    opacity: .8;
    user-select: none;
}

/* 🔹 RIGHT PANEL */
.core {
    width: 280px;
    height: 75vh;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 20px rgba(167,255,176,0.15);
    animation: corePulse 4s ease-in-out infinite alternate;
    position: relative;
    margin-left: auto;
    margin-right: 5vw;
}

@keyframes corePulse {
    0% { box-shadow: 0 0 20px rgba(167,255,176,0.15); }
    100% { box-shadow: 0 0 40px rgba(167,255,176,0.3); }
}

.core-title {
    text-align: center;
    color: var(--accent);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.core-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.core-status span {
    display: block;
    color: var(--fg);
}

/* 🔹 EXO CORE PULSE ANIMATIONS */

/* Normalno disanje */
@keyframes corePulseSlow {
    0% { transform: scale(1); box-shadow: 0 0 30px rgba(167,255,176,0.3); }
    100% { transform: scale(1.08); box-shadow: 0 0 60px rgba(167,255,176,0.5); }
}

/* Brzo disanje (kad EXO “razmišlja”) */
@keyframes corePulseFast {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(167,255,176,0.4); }
    100% { transform: scale(1.15); box-shadow: 0 0 70px rgba(167,255,176,0.7); }
}

.core-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    margin: 20px auto;
    animation: corePulseSlow 4s ease-in-out infinite alternate;
    transition: all 0.3s ease;
    background: radial-gradient(circle at 50% 50%, rgba(167,255,176,0.2), rgba(0,0,0,0.05));
    box-shadow: 0 0 25px rgba(167,255,176,0.25);
}

/* Aktivno razmišljanje */
.core-circle.thinking {
    animation: corePulseFast 1.2s ease-in-out infinite alternate;
    filter: hue-rotate(25deg) brightness(1.2);
}

.core-footer {
    text-align: center;
    color: var(--dim);
    font-size: 11px;
    opacity: 0.8;
}

.loading-dots::after {
    content: "⠋";
    display: inline-block;
    animation: dots 1s steps(4, end) infinite;
    margin-left: 4px;
}

@keyframes dots {
    0% { content: "⠋"; }
    25% { content: "⠙"; }
    50% { content: "⠹"; }
    75% { content: "⠸"; }
    100% { content: "⠋"; }
}