body {
            font-family: 'Inter', sans-serif;
            background-color: #ffffff;
            color: #333;
            margin: 0;
            padding: 0;
        }

        .main-container {
            background-color: white;
            border-radius: 16px;
            margin: 10px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }

        .sidebar {
            background-color: white;
            border-right: 1px solid #e5e7eb;
        }

        .sidebar-header {
            background-color: #3b82f6; /* biru solid */
            color: white;
            padding: 20px;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .new-chat-btn {
            background-color: white;
            border: 1px solid #d1d5db;
            color: #3b82f6;
            border-radius: 12px;
            padding: 12px 16px;
            width: 100%;
            font-weight: 500;
        }

        .new-chat-btn:hover {
            background-color: #f9fafb;
        }

        .chat-list {
            padding: 16px;
            max-height: calc(100vh - 200px);
            overflow-y: auto;
        }

        .chat-item {
            background-color: white;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 8px;
            cursor: pointer;
        }

        .chat-item:hover {
            background-color: #f9fafb;
        }

        .chat-item.active {
            background-color: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }

        .chat-item.active .chat-time {
            color: rgba(255, 255, 255, 0.9);
        }

        .chat-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #3b82f6;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 600;
            margin-right: 12px;
            flex-shrink: 0;
        }

        .chat-item.active .chat-avatar {
            background-color: rgba(255, 255, 255, 0.3);
        }

        .chat-content {
            flex: 1;
            min-width: 0;
        }

        .chat-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .chat-time {
            font-size: 12px;
            color: #6b7280;
        }

        .main-content {
            background-color: white;
            display: flex;
            flex-direction: column;
        }

        .content-header {
            padding: 20px 24px;
            border-bottom: 1px solid #e5e7eb;
            background-color: white;
        }

        .model-select {
            background-color: white;
            border: 1px solid #d1d5db;
            border-radius: 10px;
            padding: 8px 12px;
            font-size: 14px;
            color: #333;
            outline: none;
        }

        .model-select:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .chat-area {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            background-color: white;
        }

        .message {
            animation: fadeIn 0.4s ease-out;
            margin-bottom: 16px;
            word-wrap: break-word;
            white-space: pre-wrap;
        }

        .message.user {
            margin-left: auto;
            margin-right: 0;
            max-width: 70%;
        }

        .message.assistant {
            margin-left: 0;
            margin-right: auto;
            max-width: 80%;
        }

        .message-content {
            padding: 16px 20px;
            border-radius: 18px;
            font-size: 14px;
            line-height: 1.5;
            border: 1px solid #e5e7eb;
        }

        .message.user .message-content {
            background-color: #3b82f6;
            color: white;
            border-bottom-right-radius: 6px;
            border-color: #3b82f6;
        }

        .message.assistant .message-content {
            background-color: white;
            color: #333;
            border-bottom-left-radius: 6px;
        }

        .input-area {
            padding: 20px 24px;
            border-top: 1px solid #e5e7eb;
            background-color: white;
        }

        .input-container {
            display: flex;
            gap: 12px;
            align-items: flex-end;
        }

        .message-input {
            flex: 1;
            background-color: white;
            border: 1px solid #d1d5db;
            border-radius: 16px;
            padding: 12px 16px;
            font-size: 14px;
            color: #333;
            outline: none;
            resize: none;
            min-height: 44px;
            max-height: 120px;
        }

        .message-input:focus {
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .send-button {
            background-color: #3b82f6;
            color: white;
            border: none;
            border-radius: 16px;
            padding: 12px 20px;
            font-weight: 600;
            cursor: pointer;
            min-height: 44px;
        }

        .send-button:hover:not(:disabled) {
            background-color: #2563eb;
        }

        .send-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .welcome-message {
            text-align: center;
            color: #666;
            margin-top: 60px;
        }

        .welcome-icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.8;
        }

        .welcome-title {
            font-size: 24px;
            font-weight: 600;
            color: #3b82f6;
            margin-bottom: 8px;
        }

        .welcome-subtitle {
            font-size: 14px;
            opacity: 0.7;
        }

        .typing-indicator {
            display: none;
            margin-bottom: 16px;
        }

        .typing-indicator.show {
            display: block;
        }

        .typing-content {
            max-width: 80%;
            padding: 16px 20px;
            border-radius: 18px;
            border-bottom-left-radius: 6px;
            background-color: white;
            border: 1px solid #e5e7eb;
            color: #666;
            font-size: 14px;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Context Menu */
        .context-menu {
            position: absolute;
            background-color: white;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            z-index: 50;
            min-width: 160px;
        }

        .context-menu-item {
            padding: 12px 16px;
            cursor: pointer;
            color: #333;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .context-menu-item:hover {
            background-color: #eff6ff;
            color: #3b82f6;
        }

        .context-menu-item.delete:hover {
            background-color: #fef2f2;
            color: #dc2626;
        }

        .context-menu-divider {
            height: 1px;
            background-color: #e5e7eb;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* Debug Panel */
        .debug-panel {
            position: fixed;
            top: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            padding: 12px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            max-width: 320px;
            display: none;
            z-index: 1000;
        }

        .debug-toggle {
            position: fixed;
            top: 10px;
            right: 10px;
            background: #3b82f6;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            z-index: 1001;
            font-size: 12px;
            font-weight: 500;
        }

        ul {
            list-style-type: disc;
            padding-left: 1.5rem;
            margin: 0.5rem 0;
        }

        li {
            margin: 0.25rem 0;
        }

        @media (max-width: 768px) {
            .main-container {
                margin: 8px;
                border-radius: 12px;
            }

            .sidebar {
                display: none;
            }

            .message.user,
            .message.assistant {
                max-width: 90%;
            }

            .input-container {
                flex-direction: column;
                align-items: stretch;
            }

            .send-button {
                padding: 14px;
                border-radius: 16px;
            }
        }