body {
    min-height: 100vh;
    /* padding: 20px; */
    background-color: #f5f5f5;
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    border: none;
    font-size: 24px;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.floating-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 430px;
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 10035;
    display: flex;
    flex-direction: column;
    resize: horizontal;
    overflow: hidden;
    min-width: 350px;
    max-width: 90vw;
}

.chat-drawer.open {
    right: 0;
}

.chat-drawer.fullscreen {
    width: 50vw;
    max-width: 50vw;
}

.resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: ew-resize;
    background-color: transparent;
    z-index: 10;
}

.resize-handle:hover {
    background-color: rgba(0, 123, 255, 0.2);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.header-btn:hover {
    color: #333;
    background-color: #f0f0f0;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #333;
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 15px;
}

.message-question {
    display: inline-block;
    padding: 10px 18px;
    background-color: #F2F3F5;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    max-width: 80%;
    float: right;
    clear: both;
}

.message-answer {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    clear: both;
}

.message-answer p {
    margin-bottom: 10px;
}

.message-answer ul,
.message-answer ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

.message-answer code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.message-answer pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.message-answer blockquote {
    border-left: 3px solid #ddd;
    padding-left: 15px;
    margin-left: 0;
    color: #666;
}

.greeting {
    margin-bottom: 20px;
}

.greeting-text {
    font-size: 20px;
    margin-bottom: 15px;
}

.smart-insights {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.smart-insights::after {
    content: "✨";
    margin-left: 5px;
}

.suggestion-btn {
    display: block;
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background-color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #333;
}

.suggestion-btn-text {
    display: -webkit-box;
    line-clamp: 3;   /* batas baris */
    -webkit-line-clamp: 3;   /* batas baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggestion-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: white;
}

.chat-input-wrapper {
    position: relative;
}

.chat-input {
    border-radius: 25px;
    padding-right: 100px;
}

.input-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
}

.icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 0;
}

.floating-btn.drawer-open {
    right: 30px;
    right: 450px;
}

@media (max-width: 768px) {
    .chat-drawer {
        width: 100%;
        right: -100%;
    }

    .floating-btn.drawer-open {
        right: 30px;
        right: 450px;
    }
}

/* Table Styles */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.markdown-content table th,
.markdown-content table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.markdown-content table th {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.markdown-content table tr:nth-child(even) {
    background: #f9f9f9;
}

.markdown-content table tr:hover {
    background: #f5f5f5;
}

.markdown-content strong {
    color: #e74c3c;
    font-weight: 600;
}