* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0f172a; /* Deep, sleek dark blue/slate */
    color: #e2e8f0;
    height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

#app-container {
    width: 100%;
    max-width: 500px; /* Keeps it looking like a mobile app on desktop */
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- The Initial Centered Grid --- */
#nav-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); /* Super smooth animation */
}

.nav-icon {
    background-color: #1e293b;
    border: 2px solid #334155;
    border-radius: 20px;
    width: 80px;
    height: 80px;
    font-size: 28px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make the active phone button stand out slightly */
#phone-btn {
    color: #38bdf8;
    border-color: #0284c7;
}

/* Locked icons look faded */
.nav-icon.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

/* The glowing animation when Nyx is listening */
#phone-btn.listening {
    background-color: #0284c7;
    color: white;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.6);
    border-color: #38bdf8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- THE TRANSITION STATE (When header mode is active) --- */
#app-container.header-active #nav-container {
    top: 20px;
    transform: translateY(0) scale(0.7); /* Shrink and move to top */
    gap: 15px;
    display: flex; /* Flattens grid into a row */
    justify-content: center;
    width: 100%;
}

/* --- The Chat Area --- */
#chat-interface {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s ease 0.2s; /* Waits for icons to move before fading in */
    margin-top: 120px; /* Space for the new header */
    width: 90%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Slide in and fade up */
#app-container.header-active #chat-interface {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#status {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#transcription-box {
    background-color: #1e293b;
    border-radius: 15px;
    padding: 20px;
    flex-grow: 1;
    margin-bottom: 30px;
    border: 1px solid #334155;
    overflow-y: auto;
}

.system-msg {
    color: #64748b;
    font-style: italic;
    text-align: center;
}