/* ZERO THINK - QUANTUM GRID THEME */
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #e0e0e0;
    background-color: #000;
    /* CSS-GENERATED MATRIX GRID (No Image Files Required) */
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    height: 100vh;
    overflow: hidden;
}

.zt-main-layout {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, rgba(42, 10, 61, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(2px);
}

/* HEADER */
.zt-header {
    padding: 15px 25px;
    border-bottom: 1px solid #333;
    background: rgba(0,0,0,0.8);
    display: flex; justify-content: space-between; align-items: center;
}
.zt-logo { 
    font-family: 'Courier New', monospace; 
    font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: -1px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}
.pro-badge { background: #a855f7; color: #000; font-size: 0.6rem; padding: 2px 6px; margin-left: 8px; border-radius: 2px; font-weight: bold; }

/* PILLS */
.zt-pill-container { display: flex; gap: 10px; padding: 10px; justify-content: center; background: rgba(0,0,0,0.5); border-bottom: 1px solid #222; }
.zt-pill {
    background: #111; border: 1px solid #333; color: #666;
    padding: 6px 14px; border-radius: 4px; cursor: pointer;
    font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
    transition: all 0.2s;
}
.zt-pill:hover { border-color: #a855f7; color: #fff; }
.zt-pill.active {
    background: #2a0a3d; border-color: #a855f7; color: #fff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

/* CHAT AREA */
.zt-chat-window {
    flex: 1; overflow-y: auto; padding: 40px;
    display: flex; flex-direction: column; gap: 20px;
    max-width: 900px; margin: 0 auto; width: 100%;
}

/* MESSAGES */
.zt-message { padding: 20px; border-radius: 4px; line-height: 1.6; font-size: 1rem; max-width: 85%; }
.zt-message.user {
    align-self: flex-end; background: #222; color: #fff; border-left: 2px solid #555;
}
.zt-message.ai {
    align-self: flex-start; background: rgba(0,0,0,0.6); color: #ccc;
    border: 1px solid #333; border-left: 3px solid #a855f7;
    width: 100%;
}

/* DEEPTHINK UI ELEMENTS */
.zt-thought-box {
    background: #0d0d0d;
    border: 1px dashed #444;
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}
.zt-thought-header {
    background: #151515;
    color: #888;
    padding: 10px 15px;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex; align-items: center;
}
.zt-thought-header:hover { color: #a855f7; }
.zt-thought-content {
    padding: 15px;
    color: #666;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border-top: 1px solid #222;
    white-space: pre-wrap;
}
.zt-final-answer {
    color: #e0e0e0;
}

/* INPUT */
.zt-input-area {
    padding: 20px; background: #000; border-top: 1px solid #333;
    display: flex; gap: 10px; justify-content: center;
}
textarea {
    flex: 1; max-width: 900px; background: #080808; border: 1px solid #333;
    color: #0f0; padding: 15px; font-family: 'Courier New'; font-size: 1rem;
    outline: none; height: 50px; resize: none;
}
button {
    background: #2a0a3d; color: #fff; border: 1px solid #a855f7;
    padding: 0 25px; font-weight: bold; cursor: pointer; text-transform: uppercase;
}

/* UTILS */
.blink { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #333; }

/* --- LOGO SIZING FIX --- */
.zt-logo img {
    height: 32px !important; /* Force small size in header */
    width: auto !important;
    vertical-align: middle;
}

/* --- FAVICON SUPPORT --- */
link[rel="icon"] { display: none; }

/* --- HOMEPAGE SPECIFIC --- */
body.home-page {
    background: url('/assets/img/zerothinkmain.png') no-repeat center center fixed !important;
    background-size: cover !important;
}

/* --- BOTTOM LEFT ZERO TOGGLE --- */
.zt-sovereign-switch {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
}
.zt-sovereign-switch:hover {
    border-color: #a855f7;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}
.zt-switch-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.zt-switch-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    box-shadow: inset 0 0 5px #000;
}
/* When Active */
.zt-sovereign-switch.active { border-color: #a855f7; }
.zt-sovereign-switch.active .zt-switch-indicator {
    background: #0f0; /* Green Light */
    box-shadow: 0 0 10px #0f0;
}
.zt-sovereign-switch.active .zt-switch-label { color: #fff; }

