:root {
    --bg-dark: #131314;
    --sidebar-bg: #1e1f20;
    --text-main: #e3e3e3;
    --accent-blue: #4285f4;
    --accent-purple: #9b72cb;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.new-chat button {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    background: #282a2c;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-weight: 500;
}

.history-item {
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c4c7c5;
}

.history-item.active {
    background: #333739;
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    background: #5f6368;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Content */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.header {
    padding: 15px 30px;
}

.ai-name {
    font-size: 20px;
    font-weight: 500;
    background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-status {
    font-size: 11px;
    background: #333;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    color: #fff;
    -webkit-text-fill-color: initial;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 15% 150px 15%;
}

.welcome-screen {
    max-width: 800px;
    margin: 50px auto;
}

.gradient-text {
    font-size: 56px;
    font-weight: 600;
    background: linear-gradient(to right, #4285f4, #d96570);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-screen p {
    font-size: 44px;
    color: #444746;
    margin-bottom: 40px;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.card {
    background: #1e1f20;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.card:hover {
    background: #282a2c;
}

/* Chat Bubbles */
.message {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    animation: slideUp 0.3s ease-out;
}

.message.user {
    flex-direction: row-reverse;
}

.avatar-icon {
    font-size: 20px;
    min-width: 30px;
}

.message-content {
    max-width: 80%;
    line-height: 1.7;
    font-size: 16px;
}

.user .message-content {
    background: #282a2c;
    padding: 12px 20px;
    border-radius: 20px;
}

/* Input Box */
.input-area {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0 15% 30px 15%;
    background: linear-gradient(transparent, var(--bg-dark) 20%);
}

.input-wrapper {
    background: #1e1f20;
    border-radius: 30px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.input-wrapper:focus-within {
    border-color: #444;
}

textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 16px;
    padding: 10px 0;
    resize: none;
    max-height: 200px;
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--accent-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: 0.2s;
    /* MEMASTIKAN TOMBOL BISA DIKLIK */
    pointer-events: auto !important;
    position: relative;
    z-index: 100;
}

.send-btn:hover {
    background: rgba(255,255,255,0.05);
}

.send-btn:disabled {
    color: #555;
    cursor: default;
}

.disclaimer {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .messages-container, .input-area { padding-left: 20px; padding-right: 20px; }
    .gradient-text { font-size: 32px; }
    .welcome-screen p { font-size: 28px; }
}
