/* --- SCROLLBARS CUSTOM (Style VS Code) --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.dark ::-webkit-scrollbar-track,
body {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #88888844;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #88888888;
}

/* --- EDITEUR DE CODE (Numéros de ligne) --- */
.code-syntax {
    counter-reset: line;
}

.code-syntax .line::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
    width: 2rem;
    margin-right: 1rem;
    color: #656565;
    text-align: right;
    user-select: none;
}

/* --- DRAG & DROP EXPLORATEUR --- */
.tree-node.drag-over, .drag-over {
    background-color: rgba(0, 122, 204, 0.25) !important;
    outline: 1px dashed #007acc;
}

/* --- MENU CONTEXTUEL --- */
.context-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
}

.context-menu-item:hover {
    background-color: #007acc;
    color: white;
}

/* --- FICHIER NON SAUVEGARDÉ (Indicateur) --- */
.is-dirty::after {
    content: ' •';
    color: white;
    font-size: 14px;
}

/* --- LOGS PM2 --- */
.log-line { 
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    white-space: pre-wrap; 
    word-wrap: break-word;
}