:root {
    --bg: #F8FAFC;
    --side: #FFFFFF;
    --panel: #F1F5F9;
    --primary: #2364A8; /* Updated Primary Color */
    --border: #E2E8F0;
    --text: #1E293B;
    --text-light: #64748B;
    --danger: #EF4444;
}

body { background: var(--bg); color: var(--text); font-family: 'Montserrat', sans-serif; margin: 0; display: flex; height: calc(100vh - 71px); overflow: hidden; }

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.header-logo {
    max-height: 50px;
    width: auto;
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    vertical-align: middle;
}
.header a {
    display: inline-block;
    line-height: 0;
}
.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}
.header-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.header-nav a:hover {
    color: var(--primary);
}

/* Panes */
.sidebar { width: 280px; background: rgba(255, 255, 255, 0.3); border-right: 1px solid var(--border); padding: 25px; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.2); }
.inspector { width: 340px; background: rgba(255, 255, 255, 0.3); border-left: 1px solid var(--border); padding: 20px; overflow-y: auto; }

/* Chat UI */
.chat-box { flex: 1; padding: 40px 10%; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
.msg { padding: 15px 20px; border-radius: 12px; max-width: 90%; line-height: 1.6; font-size: 0.95rem; }
.msg-user { background: rgba(241, 245, 249, 0.6); align-self: flex-end; color: var(--text); border: 1px solid var(--border); }
.msg-bot { align-self: flex-start; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

/* Markdown Styling for Answers */
.msg-bot ul, .msg-bot ol { margin-left: 20px; }
.msg-bot li { margin-bottom: 5px; }

.input-area { padding: 20px 10%; border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.3); }
.input-wrap { display: flex; padding: 8px; border-radius: 12px; border: 2px solid var(--border); transition: 0.2s; }
.input-wrap:focus-within { border-color: var(--primary); }
input { flex: 1; border: none; outline: none; padding: 10px; font-size: 1rem; color: var(--text); }

.btn { 
    background: linear-gradient(135deg, #77D9F3 0%, #0458F1 100%); 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(4, 88, 241, 0.3);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 88, 241, 0.4);
}
.btn-danger { 
    background: #fee2e2; 
    color: #ef4444; 
    font-size: 0.8rem; 
    padding: 5px 10px; 
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
}
.btn-danger:hover {
    background: #ef4444;
    color: white;
}

.brand-logo { max-width: 220px; height: auto; display: block; margin-bottom: 12px; }
.icon-lg { width: 26px; height: 26px; }
.icon-sm { width: 16px; height: 16px; vertical-align: text-bottom; }

.label { font-size: 0.7rem; color: var(--text-light); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; display: block; }
.code-block { background: rgba(241, 245, 249, 0.5); padding: 12px; border-radius: 8px; font-size: 0.8rem; color: var(--text-light); margin-bottom: 20px; border: 1px solid var(--border); }
