:root {
    --bg-color: #080808;
    --card-bg: #111111;
    --accent: #00f2fe;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

header {
    padding: 20px;
    border-bottom: 1px solid #222;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 { font-size: 1.5rem; margin: 0; font-weight: 700; letter-spacing: -1px; }
h1 span { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 20px; }

/* Toggle Style */
.language-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-secondary); }
.switch { position: relative; display: inline-block; width: 34px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(14px); }

#refresh-button {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message { background: #1a1a1a; align-self: flex-start; border-bottom-left-radius: 2px; }
.user-message { background: var(--accent); color: #000; align-self: flex-end; border-bottom-right-radius: 2px; font-weight: 500; }

.chat-input-area {
    padding: 20px;
    background: #0c0c0c;
    display: flex;
    gap: 10px;
}

#user-input {
    flex-grow: 1;
    background: #151515;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 12px;
    color: white;
}

#send-button {
    background: var(--accent);
    color: black;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}