/* --- Global & Reset --- */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    font-size: 14px;
}

/* --- Halaman Login --- */
.login-container {
    width: 380px;
    padding: 40px;
    margin: 100px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.login-container h2 { text-align: center; margin-top: 0; margin-bottom: 20px; color: #333; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.login-container button { width: 100%; padding: 10px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }
.login-container button:hover { background-color: #0056b3; }
.error-message { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; padding: 10px; border-radius: 4px; margin-bottom: 15px; }


/* --- Layout Utama Aplikasi (3 Kolom) --- */
.main-container {
    display: flex;
    height: 100vh;
}

.left-pane {
    width: 25%;
    min-width: 200px;
    border-right: 2px solid #ccc;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.right-pane {
    width: 75%;
    display: flex;
    flex-direction: column;
}

.top-right-pane, .bottom-right-pane {
    display: flex;
    flex-direction: column;
    height: 50%;
}

.top-right-pane {
    border-bottom: 2px solid #ccc;
}

/* --- Komponen Panel --- */
.pane-header {
    padding: 10px 15px;
    background: #e9ecef;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.pane-header h3 { margin: 0; font-size: 16px; color: #343a40; }
.pane-content {
    overflow: auto;
    padding: 10px;
    flex-grow: 1;
    background-color: #fff;
}

/* --- Tombol Aksi --- */
.path-navigation { display: flex; align-items: center; }
.path-navigation h3 { margin-left: 10px; }
.action-btn, #back-btn {
    width: auto;
    padding: 5px 10px;
    font-size: 12px;
    margin-left: 5px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}
.logout-btn { background-color: #dc3545; padding: 5px 10px; color: white; text-decoration: none; border-radius: 4px; font-size: 12px;}
#new-folder-btn { background-color: #ffc107; color: #212529; }
#new-file-btn { background-color: #17a2b8; }
#back-btn { background-color: #6c757d; }
#save-btn { background-color: #28a745; }
#fullscreen-btn { background-color: #343a40; }
.action-btn i { margin-right: 5px; }

/* --- Daftar File & Folder --- */
#file-list { width: 100%; border-collapse: collapse; }
#file-list th, #file-list td { padding: 8px; border-bottom: 1px solid #ddd; text-align: left; }
#file-list th { background-color: #f8f9fa; }
.file-item { cursor: pointer; }
.file-item:hover { background-color: #e9ecef; }
.actions-cell { text-align: right !important; }
.action-icon { margin-left: 15px; cursor: pointer; color: #6c757d; }
.action-icon:hover { color: #343a40; }
.delete-btn:hover { color: #dc3545; }

/* --- Pohon Folder --- */
#folder-tree ul {
    list-style-type: none;
    padding-left: 15px;
}
#folder-tree li { padding: 3px 0; }
#folder-tree .node { cursor: pointer; }
#folder-tree .node:hover { color: #007bff; }
#folder-tree .folder::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: '\f07b'; /* Ikon folder */
    margin-right: 8px;
}

/* --- Editor --- */
#editor {
    width: 100%;
    height: 100%;
}
.bottom-right-pane.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    border: none;
}