* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #e8f0fe, #bbdefb, #f3e5f5);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 400;
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: -1;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    color: #1976d2;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'League Spartan', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

header h1 .name {
    color: #000;
}

header h1 .wiki {
    color: #1976d2;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 1rem auto 0;
    padding: 2rem;
    gap: 2rem;
    min-height: calc(100vh - 4rem - 3rem - 1rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content h2 {
    color: #1976d2;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.main-content p {
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#chat-history {
    border: 1px solid #ccc;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    border-radius: 12px;
    max-height: 400px;
}

.chat-input {
    display: flex;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.chat-input input {
    flex-grow: 1;
    padding: 10px 70px 10px 20px;
    border: 1px solid #ccc;
    border-radius: 100px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
}

.chat-input button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 100px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

.message {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #222;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.message:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.user {
    background-color: #f0f0f0;
    text-align: right;
}

.message.gemini {
    background-color: #e0f7fa;
    text-align: left;
}

.message.gemini ul {
    padding-left: 20px;
}

footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #333;
    text-align: center;
    padding: 1.5rem;
    margin: 2rem;
    border-radius: 24px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    color: #777;
}

#chat-history::-webkit-scrollbar {
    width: 8px;
}

#chat-history::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

#chat-history::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.typing-indicator {
    background-color: #e0f7fa;
    color: #888;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    display: none;
    margin-bottom: 6px;
    align-self: flex-start;
}

/* Thêm định dạng cho nút mới */
.drive-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Khoảng cách giữa hai nút */
    margin-top: 40px; /* Đẩy xuống để nằm giữa khoảng trống */
}

.drive-buttons button {
    background-color: #cce6cc; /* Xanh lá nhạt */
    color: #333;
    border: none;
    border-radius: 12px; /* Viền cong nhẹ */
    padding: 12px 30px; /* To hơn, hình chữ nhật */
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.drive-buttons #load-from-drive {
    background-color: #fff6cc; /* Vàng nhạt */
}

.drive-buttons button:hover {
    transform: translateY(-2px);
    background-color: #b3d9b3; /* Nhạt hơn khi hover */
}

.drive-buttons #load-from-drive:hover {
    background-color: #ffedb3; /* Nhạt hơn khi hover */
}

.drive-buttons button:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}