
/* =====================================
   E.D.I.T.H. 2.0
   FUTURISTIC INTERFACE
===================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --background: #050914;
    --panel: #091322;
    --panel-light: #0c1b30;
    --blue: #168cff;
    --blue-light: #63bdff;
    --cyan: #00d9ff;
    --white: #edf6ff;
    --muted: #8194ac;
    --border: rgba(87, 169, 255, 0.13);
}

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

body {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 42%, #0b1d35 0%, transparent 48%),
        var(--background);
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

/* =====================================
   APP
===================================== */

.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* =====================================
   SIDEBAR
===================================== */

.sidebar {
    width: 265px;
    min-width: 265px;
    height: 100%;
    padding: 27px 19px;
    background: rgba(5, 13, 26, 0.94);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: 0.35s ease;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 38px;
}

.brand-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(65, 170, 255, 0.7);
    border-radius: 13px;
    color: var(--blue-light);
    font-size: 25px;
    font-weight: 800;
    background: linear-gradient(145deg, #102e51, #07111e);
    box-shadow: 0 0 20px rgba(22, 140, 255, 0.2);
}

.brand-info h2 {
    font-size: 17px;
    letter-spacing: 3px;
}

.brand-info span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 1px;
}

.new-chat {
    width: 100%;
    padding: 13px;
    border: 1px solid rgba(53, 155, 255, 0.35);
    border-radius: 10px;
    background: rgba(22, 140, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    transition: 0.3s;
}

.new-chat:hover {
    background: rgba(22, 140, 255, 0.19);
    border-color: var(--blue);
}

.new-chat span {
    margin-right: 8px;
    color: var(--blue-light);
    font-size: 18px;
}

.sidebar-section {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-title {
    color: #536982;
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 9px;
    padding-left: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #91a5bd;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(30, 133, 235, 0.12);
    color: var(--blue-light);
}

.menu-item span {
    font-size: 16px;
}

.sidebar-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #72869d;
    font-size: 10px;
    padding: 13px 5px;
}

/* =====================================
   STATUS INDICATORS
===================================== */

.status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #36dba0;
    box-shadow: 0 0 10px #36dba0;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    50% {
        opacity: 0.4;
        box-shadow: 0 0 3px #36dba0;
    }
}

/* =====================================
   MAIN CONTENT
===================================== */

.main-content {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* =====================================
   TOPBAR
===================================== */

.topbar {
    height: 75px;
    min-height: 75px;
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 13, 26, 0.35);
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 23px;
    cursor: pointer;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
}

.topbar-right {
    color: #60768f;
    font-size: 9px;
    letter-spacing: 2px;
}

/* =====================================
   ASSISTANT CENTER
===================================== */

.assistant-section {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
    text-align: center;
}

.orb-container {
    width: 210px;
    height: 210px;
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 32px;
}

.orb {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #c4f0ff 0%, #4caaff 12%, #0875e9 34%, #092b67 65%, #020c20 100%);
    box-shadow:
        0 0 22px #168cff,
        0 0 55px rgba(22, 140, 255, 0.75),
        inset -12px -12px 25px rgba(0, 0, 0, 0.6),
        inset 10px 8px 25px rgba(126, 208, 255, 0.5);
    animation: orbFloat 4s ease-in-out infinite;
    z-index: 2;
}

.orb-inner {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(177, 233, 255, 0.55);
    box-shadow: inset 0 0 25px rgba(73, 185, 255, 0.7);
    animation: innerPulse 3s infinite alternate;
}

.orb-glow {
    position: absolute;
    width: 185px;
    height: 185px;
    border-radius: 50%;
    background: rgba(0, 132, 255, 0.16);
    filter: blur(30px);
    animation: glowPulse 3s infinite alternate;
}

.orb-ring {
    position: absolute;
    border: 1px solid rgba(67, 175, 255, 0.32);
    border-radius: 50%;
    animation: ringRotate 12s linear infinite;
}

.ring-one {
    width: 155px;
    height: 155px;
    border-left-color: transparent;
    border-right-color: rgba(0, 220, 255, 0.7);
}

.ring-two {
    width: 185px;
    height: 185px;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 220, 255, 0.6);
    animation-duration: 18s;
    animation-direction: reverse;
}

.ring-three {
    width: 205px;
    height: 205px;
    border-style: dashed;
    border-color: rgba(58, 140, 255, 0.17);
    animation-duration: 30s;
}

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbFloat {
    50% {
        transform: translateY(-8px) scale(1.04);
    }
}

@keyframes innerPulse {
    to {
        transform: scale(0.88);
        opacity: 0.5;
    }
}

@keyframes glowPulse {
    to {
        opacity: 0.65;
        transform: scale(1.2);
    }
}

/* =====================================
   ASSISTANT TEXT
===================================== */

.assistant-info {
    max-width: 520px;
}

.eyebrow {
    color: var(--blue-light);
    font-size: 9px;
    letter-spacing: 4px;
}

.assistant-info h1 {
    margin-top: 13px;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 500;
    letter-spacing: -1px;
}

.assistant-info p {
    margin-top: 12px;
    color: #8198b2;
    font-size: 13px;
    line-height: 1.7;
}

/* =====================================
   AUDIO VISUALIZER
===================================== */

.audio-visualizer {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 27px;
}

.audio-visualizer span {
    width: 3px;
    height: 7px;
    border-radius: 10px;
    background: var(--blue-light);
    opacity: 0.7;
    animation: audioWave 1s ease-in-out infinite alternate;
}

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

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

@keyframes audioWave {
    to {
        height: 25px;
        opacity: 1;
        box-shadow: 0 0 8px var(--blue);
    }
}

/* =====================================
   CHAT AREA
===================================== */

.chat-area {
    width: 100%;
    max-width: 850px;
    max-height: 35%;
    overflow-y: auto;
    margin: 0 auto;
    padding: 10px 25px;
}

.chat-area:empty {
    display: none;
}

/* =====================================
   INPUT AREA
===================================== */

.input-area {
    width: 100%;
    max-width: 850px;
    padding: 15px 25px 20px;
    margin: 0 auto;
}

.input-box {
    min-height: 65px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(67, 156, 255, 0.28);
    border-radius: 17px;
    background: rgba(10, 25, 44, 0.9);
    box-shadow: 0 0 25px rgba(0, 110, 255, 0.06);
    transition: 0.3s;
}

.input-box:focus-within {
    border-color: rgba(64, 170, 255, 0.75);
    box-shadow: 0 0 25px rgba(0, 110, 255, 0.16);
}

.input-box textarea {
    flex: 1;
    min-width: 0;
    max-height: 130px;
    resize: none;
    outline: none;
    border: none;
    background: transparent;
    color: white;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 0;
}

.input-box textarea::placeholder {
    color: #627c99;
}

.attachment-button,
.voice-button,
.send-button {
    width: 39px;
    height: 39px;
    min-width: 39px;
    border: none;
    border-radius: 11px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.attachment-button {
    background: transparent;
    color: #91a9c4;
    font-size: 22px;
}

.attachment-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

.voice-button {
    background: rgba(30, 139, 255, 0.13);
    color: var(--blue-light);
    font-size: 18px;
    border: 1px solid rgba(56, 156, 255, 0.2);
}

.voice-button:hover {
    background: rgba(30, 139, 255, 0.3);
    box-shadow: 0 0 15px rgba(22, 140, 255, 0.25);
}

.send-button {
    background: linear-gradient(135deg, #168cff, #0752c0);
    color: white;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(22, 140, 255, 0.25);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(22, 140, 255, 0.55);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: #526b87;
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* =====================================
   RESPONSIVE DESIGN
===================================== */

@media (max-width: 760px) {

    .sidebar {
        position: absolute;
        left: -280px;
        top: 0;
        height: 100%;
    }

    .sidebar.open {
        left: 0;
    }

    .menu-button {
        display: block;
    }

    .topbar {
        padding: 0 18px;
    }

    .topbar-right {
        display: none;
    }

    .assistant-info h1 {
        font-size: 27px;
    }

    .orb-container {
        transform: scale(0.85);
        margin-bottom: 15px;
    }

    .input-area {
        padding: 12px;
    }

    .input-footer {
        font-size: 8px;
    }

}

@media (max-height: 650px) {

    .orb-container {
        transform: scale(0.72);
        margin-bottom: 0;
    }

    .assistant-info h1 {
        font-size: 25px;
    }

    .audio-visualizer {
        margin-top: 10px;
    }

}
