/* --- index.css: Giao diện Dubai Candy Hoàn chỉnh --- */

/* 1. KHUNG GIAO DIỆN CƠ BẢN */
body {
    display: flex;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    margin: 0;
    background-color: #fdfbf7;
    color: #5c4346;
}

#sidebar {
    width: 30%;
    border-right: 3px dashed #f8d7da;
    padding: 25px;
    background: #ffffff;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 4px 0 15px rgba(232, 174, 183, 0.15);
}

#content {
    width: 70%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}

/* 2. NÚT BẤM VÀ CÂY THƯ MỤC */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn:active { transform: translateY(3px); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

#scanBtn { background: linear-gradient(135deg, #a8e6cf, #77d9a8); color: #1a4a38; }
#scanBtn:hover { background: linear-gradient(135deg, #95d4bd, #5fc28f); box-shadow: 0 6px 15px rgba(119, 217, 168, 0.4); }

#reportBtn { background: linear-gradient(135deg, #ffb7b2, #ff8aaa); color: #ffffff; display: none; }
#reportBtn:hover { background: linear-gradient(135deg, #f5a5a0, #f07597); box-shadow: 0 6px 15px rgba(255, 138, 170, 0.4); }

ul { list-style-type: none; padding-left: 25px; margin: 10px 0; border-left: 2px dotted #ffb7b2; }
li { margin: 8px 0; }
.folder { font-weight: bold; color: #c68e17; background: #fffdf5; padding: 4px 10px; border-radius: 12px; display: inline-block; }
.file { cursor: pointer; color: #b86289; text-decoration: none; padding: 4px 10px; border-radius: 12px; transition: background 0.2s, color 0.2s; display: inline-block; }
.file:hover { background: #ffe4e1; color: #d9417c; }

/* 3. KHU VỰC HIỂN THỊ CODE/LOG */
#fileViewer {
    flex-grow: 1;
    background: #4a3b32;
    color: #fdfbf7;
    padding: 20px;
    border-radius: 20px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    margin-top: 15px;
    border: 5px solid #f2e3d5;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

#fileName { color: #c68e17; border-bottom: 3px double #ffb7b2; padding-bottom: 12px; margin-top: 0; font-size: 1.4rem; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #fdfbf7; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #ffb7b2; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #ff8aaa; }

/* 4. [NEW] KHU VỰC AI GEMINI */
#ai-controls {
    display: none;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.input-candy {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px dashed #f8d7da;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    background: #fffdf5;
    color: #5c4346;
    transition: all 0.3s;
}

.input-candy:focus { border-color: #ff8aaa; box-shadow: 0 0 10px rgba(255, 138, 170, 0.2); }

.btn-ai { background: linear-gradient(135deg, #f9ca24, #f0932b); color: #fff; width: auto; padding: 12px 25px; }
.btn-ai:hover { background: linear-gradient(135deg, #f6e58d, #ffbe76); box-shadow: 0 6px 15px rgba(240, 147, 43, 0.4); }

#aiResultViewer {
    background: #fffdf5;
    color: #4a3b32;
    padding: 20px;
    border-radius: 20px;
    border-left: 6px solid #f0932b;
    margin-top: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    white-space: pre-wrap;
}