/* Main layout components */
.app-container { 
    display: flex; 
    height: 100%; 
    width: 100%; 
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
}

.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
}

/* Header Toolbar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    flex-shrink: 0;
}

.bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0; /* Prevent flex overflow */
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* Don't shrink buttons */
}

#note-title {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    max-width: none; /* Allow full expansion */
    padding: 5px;
}

#note-title:focus {
    outline: none;
    border-bottom: 1px solid var(--accent);
}

.workspace { 
    flex: 1; 
    display: flex; 
    overflow: hidden; 
    position: relative; 
}

.pane { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    min-width: 0; 
}

.divider-v {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 5px;
}

.status-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}
