/* style.css */
:root {
    --header-h: 50px;
    --side-w: 260px;
    --accent: #2980b9;
    --bg-dark: #1e1e1e;
    --bg-side: #252526;
    --border: #444;
}

body, html {
    height: 100vh;
    width: 100vw;
    margin: 0;
    font-family: 'Segoe UI', 'Consolas', monospace;
    overflow: hidden;
    background: #1a1a1a;
    color: #eee;
}

.wrapper {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    grid-template-rows: var(--header-h) 1fr;
    height: 100vh;
}

header {
    grid-column: 1 / 3;
    background: #2c3e50;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

aside {
    grid-row: 2 / 3;
    background: var(--bg-side);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    grid-row: 2 / 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.search-area {
    padding: 10px;
    background: #333;
    display: flex;
    gap: 5px;
}

#search-input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid #555;
    color: #fff;
    padding: 6px;
    border-radius: 3px;
    font-size: 12px;
}

#note-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

#note-list li {
    padding: 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-left: 4px solid transparent;
}

#note-list li.active {
    background: #37373d;
    border-left: 4px solid var(--accent);
    color: #fff;
}

.pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: var(--bg-dark);
    overflow: hidden;
}

.pane-header {
    background: #333;
    padding: 8px 15px;
    font-size: 11px;
    font-weight: bold;
    color: #888;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

textarea {
    flex: 1;
    background: var(--bg-dark);
    color: #d4d4d4;
    border: none;
    padding: 20px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    outline: none;
    resize: none;
    line-height: 1.6;
}

#preview {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

/* React Live Container */
.live-preview-container {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background: #f9f9f9;
}

.tag-filter-area {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #2d2d2d;
}

.tag-badge {
    font-size: 10px;
    background: #444;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.tag-badge.active { background: var(--accent); }

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
}

.btn-sync { background: #27ae60; }
.btn-lisp { background: #8e44ad; }
.btn-del { background: #444; }
.btn-del:hover { background: #c0392b; }

.version-tag {
    margin-left: auto;
    font-size: 10px;
    color: #5d6d7e;
}