/* BMZ Central - Minimal Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --border: #222;
    --text: #eee;
    --text-dim: #888;
    --accent: #3b82f6;
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
}

/* Layout */
.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 180px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(255,255,255,0.03);
}

.nav-item.active {
    color: var(--text);
    background: rgba(255,255,255,0.05);
    border-left: 2px solid var(--accent);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-dim);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
}

/* Main */
.main {
    flex: 1;
    margin-left: 180px;
    padding: 32px 40px;
    max-width: 800px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h1 {
    font-size: 20px;
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.card.accent {
    border-color: var(--accent);
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Next Session */
.next-session {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.ns-task {
    font-size: 15px;
    font-weight: 500;
}

.priority {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}

.priority[data-priority="HAUTE"] {
    background: rgba(239,68,68,0.15);
    color: var(--red);
}

.priority[data-priority="MOYENNE"] {
    background: rgba(234,179,8,0.15);
    color: var(--yellow);
}

.priority[data-priority="BASSE"] {
    background: rgba(34,197,94,0.15);
    color: var(--green);
}

.ns-notes {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    white-space: pre-wrap;
}

.ns-notes:empty {
    display: none;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.project {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.project:hover {
    border-color: var(--accent);
}

.project-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.project-bar {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.project-fill {
    height: 100%;
    background: var(--accent);
}

.project-pct {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* List */
.list {
    list-style: none;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox.checked {
    background: var(--green);
    border-color: var(--green);
}

.checkbox.checked::after {
    content: '✓';
    color: #000;
    font-size: 10px;
}

.list-content {
    flex: 1;
}

.list-title {
    font-size: 13px;
}

.list-item.done .list-title {
    color: var(--text-dim);
    text-decoration: line-through;
}

.list-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}

.list-delete {
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
}

.list-item:hover .list-delete {
    opacity: 1;
}

/* History */
.history-date {
    font-size: 11px;
    color: var(--text-dim);
    min-width: 50px;
}

.history-tag {
    font-size: 10px;
    background: rgba(255,255,255,0.05);
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Filters */
.filters {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.filter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Notes Grid */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.note-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 14px;
    cursor: pointer;
    position: relative;
}

.note-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.note-text {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-date {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 10px;
}

.note-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
}

.note-card:hover .note-delete {
    opacity: 1;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.btn {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn-small {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}

.btn-small:hover {
    color: var(--text);
    border-color: var(--text-dim);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
}

/* Empty */
.empty {
    text-align: center;
    padding: 30px;
    color: var(--text-dim);
    font-size: 12px;
}

/* Docs */
.docs-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.docs-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.docs-tab:hover {
    border-color: var(--accent);
    color: var(--text);
}

.docs-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.docs-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.doc-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.doc-file:hover {
    border-color: var(--accent);
}

.doc-file-name {
    font-size: 13px;
    font-family: monospace;
}

.doc-file-status {
    font-size: 10px;
    color: var(--green);
}

.doc-file-status.missing {
    color: var(--red);
}

.docs-textarea {
    width: 100%;
    min-height: 400px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: vertical;
}

.docs-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.docs-actions {
    display: flex;
    gap: 8px;
}
