@font-face {
    font-family: 'AbhoFont';
    src: url('abhofont.ttf') format('truetype');
}

:root {
    --bg: #111218;
    --panel: #1b1b23;
    --muted: #8a8dc0;
    --accent: #00ffff;
    --accent2: #fd2e58;
    --glass: rgba(255, 255, 255, 0.03);
    --text: #ffffff;
    --text-dim: #757ac1;
    --shadow: #050508;
}

* {
    box-sizing: border-box;
    font-family: 'AbhoFont', sans-serif;
    font-weight: 100;
}

html,
body {
    height: 100%;
    margin: 0;
    background: #12121b;
    color: var(--text);
}

.app {
    display: grid;
    grid-template-columns: 2fr 6fr 2fr;
    gap: 12px;
    height: 100vh;
    padding: 12px;
}

.sidebar {
    background: var(--panel);
    padding: 14px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.header h2 {
    margin: 0;
    font-size: 16px;
    color: var(--accent);
}

.group {
    background: var(--glass);
    padding: 10px;
    margin-bottom: 12px;
}

.label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.input,
textarea,
select {
    background-color: var(--panel);
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: inherit;
    margin-bottom: 10px;
}

#export-area {
    height: 150px;
    font-family: monospace;
    font-size: 12px;
    resize: none;
    margin: 0;
}

.row {
    display: flex;
    gap: 8px;
}

.row .input {
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid #000000;
    background: rgba(0,0,0,0.3);
    color: var(--muted);
    cursor: pointer;
}

.btn:hover {
    background: rgba(0,0,0,0.5);
}

.small-btn {
    padding: 6px 8px;
    border: 0;
    background-color: var(--bg);
    color: var(--muted);
    cursor: pointer;
}

.small-btn:hover {
    background: #0e0e14;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wave-editor {
    overflow: auto;
    flex: 1;
}

.wave {
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 16px;
}

.wave-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px;
    background: #0d0d13;
}

.wave-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wave-actions {
    display: flex;
    gap: 6px;
}

.collapse {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
}

.action-list {
    min-height: 36px;
}

.action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
}

.small {
    font-size: 12px;
    color: var(--text-dim);
}

.checkbox-container {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.tag {
    font-size: 11px;
    padding: 6px;
    background: var(--panel);
}

.footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.action-editor {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
}

.action-editor .card {
    width: 400px;
    background: var(--bg);
    border: 1px solid var(--muted);
    padding: 14px;
}

.dragover {
    outline: 2px dashed rgba(0, 255, 255, 0.25);
}

.delay-label {
    margin: 16px 12px 8px;
    color: var(--accent);
    font-size: 12px;
}

.delay-label::before {
    content: "> ";
}

.act-config-preview {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--panel);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent2);
}

::-webkit-scrollbar-corner {
    background: var(--panel);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--panel);
}
