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

body { 
    background-color: #ffffff; /* Latar luar putih */
    color: #1f1f1f; 
}

.app-container { 
    display: flex; 
    height: 100vh; 
    overflow: hidden;
}

/* Sidebar */
.sidebar { 
    width: 260px; 
    background-color: #f0f4f9; /* Warna khas Gemini */
    padding: 24px 20px; 
    display: flex;
    flex-direction: column;
    border-right: none;
}

.brand-logo h2 { 
    color: #1f1f1f; 
    font-size: 1.4rem; 
    margin-bottom: 30px; 
    font-weight: 600;
}

.text-blue { color: #1a73e8; } /* Biru Google */

.menu ul { list-style: none; }

.menu li { 
    padding: 12px 16px; 
    margin-bottom: 8px; 
    border-radius: 24px; /* Membulat ala pil */
    cursor: pointer; 
    color: #444746; 
    font-size: 0.95rem;
    font-weight: 500; 
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu li:hover { 
    background-color: #e8eaed; 
}

.menu li.active { 
    background-color: #d3e3fd; /* Biru muda pilihan aktif */
    color: #041e49; 
    font-weight: 600; 
}

/* Workspace & Topbar */
.workspace { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    background-color: #ffffff;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    overflow: hidden;
}

.topbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 16px 32px; 
    background-color: #ffffff; 
    height: 70px;
}

.project-info h3 { font-size: 1rem; color: #444746; font-weight: 500; }
.badge { background-color: #f0f4f9; padding: 4px 12px; border-radius: 12px; margin-left: 8px; }
.user-status { display: flex; align-items: center; gap: 15px; }
.coin-balance { font-size: 0.9rem; font-weight: 500; color: #444746; }

.btn-primary { 
    background-color: #0b57d0; 
    color: white; 
    border: none; 
    padding: 10px 24px; 
    border-radius: 24px; 
    font-size: 0.9rem;
    font-weight: 500; 
    cursor: pointer; 
    transition: 0.2s; 
}
.btn-primary:hover { background-color: #0842a0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Layout Main */
.editor-main { 
    flex: 1; 
    display: flex; 
    overflow: hidden; 
}

.canvas-area { 
    flex: 1.2; 
    padding: 24px; 
    background-color: #ffffff; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.placeholder h2 { color: #80868b; font-weight: 500; }
.placeholder p { color: #bdc1c6; }

/* CHAT PANEL: Area ini yang dirombak total ala Gemini */
.chat-panel { 
    flex: 1.5; 
    min-width: 400px;
    background-color: #f0f4f9; /* Warna abu-abu kebiruan khas Gemini */
    border-top-left-radius: 24px; /* Sudut melengkung halus */
    display: flex; 
    flex-direction: column; 
    position: relative;
}

.chat-history { 
    flex: 1; 
    padding: 40px 40px 140px 40px; /* Padding bawah ditarik agar chat tidak tertutup kotak input */
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 32px; 
}

.message { display: flex; gap: 16px; align-items: flex-start; }
.message.user-message { flex-direction: row-reverse; }

.avatar { 
    font-size: 1.2rem; 
    width: 36px; height: 36px;
    display: flex; justify-content: center; align-items: center;
    background: #ffffff; border-radius: 50%;
}

.bubble { max-width: 80%; font-size: 1rem; line-height: 1.6; }

.ai-message .bubble { padding: 5px 0; color: #1f1f1f; }
.user-message .bubble { 
    background-color: #e8eaed; /* Abu-abu terang untuk chat user */
    padding: 12px 20px; 
    color: #1f1f1f; 
    border-radius: 24px;
}

/* KOTAK INPUT RAKSASA (Floating Input ala Gemini) */
.chat-input-area { 
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px 40px; 
    background: linear-gradient(180deg, rgba(240,244,249,0) 0%, rgba(240,244,249,1) 30%); 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    background: #ffffff; /* Kotak input warna putih murni */
    border-radius: 32px; /* Super membulat */
    padding: 12px 12px 12px 16px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Bayangan sangat halus */
    gap: 12px;
}

.btn-add {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 2px;
    transition: 0.2s;
}
.btn-add:hover { background-color: #f0f4f9; }

#promptInput { 
    flex: 1; 
    background: transparent;
    border: none; 
    resize: none; 
    height: 28px; 
    max-height: 200px;
    padding: 6px 0; 
    font-size: 1.05rem;
    outline: none;
    color: #1f1f1f;
}
#promptInput::placeholder { color: #444746; }

.btn-send { 
    background-color: #c2e7ff; /* Biru muda khas tombol Gemini */
    color: #001d35; 
    border: none; 
    width: 44px;
    height: 44px;
    border-radius: 50%; 
    cursor: pointer; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s; 
    flex-shrink: 0;
}
.btn-send:hover { background-color: #b3d7f3; }

.disclaimer {
    font-size: 0.75rem;
    color: #444746;
    margin-top: 16px;
    text-align: center;
}