/* Buttons */
.btn-dark-pill {
    height: 36px; padding: 0 12px;
    background: var(--btn-dark); color: #e5e7eb;
    border: 1px solid var(--btn-dark-border); border-radius: 10px;
    cursor: pointer;
}
.btn-dark-pill:hover { background: var(--btn-dark-hover); }

.btn-accent-pill {
    height: 36px; padding: 0 14px;
    background: var(--accent-color); color: #fff;
    border: 1px solid var(--accent-color); border-radius: 10px;
    font-weight: 600; cursor: pointer;
}
.btn-accent-pill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-run-accent {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 16px;
    background: var(--accent-color); color: #fff;
    border: 1px solid var(--accent-color); cursor: pointer;
    font-weight: 600; border-radius: 10px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.btn-run-accent:hover { background: #007a7a; border-color: #007a7a; }
.btn-run-accent:active { background: #006565; border-color: #006565; }
.btn-run-accent .btn-icon { font-size: 14px; line-height: 1; }

.icon-btn {
    background: var(--btn-dark);
    border: 1px solid var(--btn-dark-border);
    color: #e5e7eb;
    border-radius: 10px;
    height: 36px; padding: 0 10px;
    cursor: pointer;
}
.icon-btn:hover { background: var(--btn-dark-hover); }

/* Dark Mode Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; user-select: none; }
.switch input { display: none; }
.slider {
    position: relative; width: 48px; height: 26px;
    background: #374151; border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); transition: background .2s;
}
.slider::before {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; background: #fff;
    border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    transition: transform .22s;
}
.switch input:checked+.slider { background: var(--accent-color); }
.switch input:checked+.slider::before { transform: translateX(22px); box-shadow: 0 0 0 2px rgba(0, 140, 140, .25); }
.switch-label { font-size: 13px; opacity: .9; }

/* Input đổi tên dự án (Inline) */
.project-rename-input {
    background-color: #3c3c3c;
    color: white;
    border: 1px solid #007acc;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 14px;
    outline: none;
    width: 200px; /* Độ rộng vừa phải */
}
/* Hiệu ứng khi kéo file vào folder */
.drag-over > .tree-item {
    background-color: #37373d !important;
    border: 1px dashed #007acc;
}