/* Notes Navigation in Header */
.notes-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 16px;
    height: 36px;
    margin-left: 16px;
    white-space: nowrap;
    min-width: 0; /* Allow shrinking */
}

.breadcrumbs {
    display: flex;
    align-items: center;
    font-size: 16px;
    flex-wrap: nowrap;
    height: 100%;
    white-space: nowrap;
    overflow: visible;
}

.file-dropdown {
    position: relative;
    display: inline-block;
}

.breadcrumb-item {
    color: var(--accent-color, #007acc);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
    height: 100%;
    line-height: 1;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 32px;
    border: 1px solid transparent;
}

.breadcrumb-item:hover {
    background-color: var(--hover-bg, #f5f5f5);
    border-color: var(--border-color, #e0e0e0);
}

.breadcrumb-item.active {
    color: var(--text-primary, #333);
    font-weight: 500;
    background-color: var(--accent-bg, #e8f0fe);
}

.breadcrumb-item.clickable {
    cursor: pointer;
}

/* Remove dropdown arrow - items are clickable without visual indicator */

.breadcrumb-separator {
    margin: 0 6px;
    color: var(--text-secondary, #666);
    user-select: none;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: fixed;
    background-color: var(--bg-secondary, white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 4px;
    border: 1px solid var(--border-color, #e0e0e0);
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-content.show {
    display: block;
}

.dropdown-item {
    color: var(--text-color, #333);
    padding: 8px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.dropdown-item:hover {
    background-color: var(--hover-bg, #f8f9fa);
}

.dropdown-item.current-item {
    background-color: var(--accent-bg, #e8f0fe);
    font-weight: 500;
}

.dropdown-item.current-item:hover {
    background-color: var(--accent-bg, #e8f0fe);
}

.dropdown-item-icon {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Main content area - same as hub main container */
#content {
    padding: 20px;
    max-width: none;
    width: 100%;
}

/* Override any existing note display styles */
.note-display {
    max-width: none;
    margin: 0;
    padding: 0;
}

.note-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color, #e0e0e0);
}

.back-button {
    background: var(--accent-color, #007acc);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    transition: background-color 0.2s;
}

.back-button:hover {
    background: var(--accent-hover, #0056b3);
}

.note-title {
    margin: 0 0 8px 0;
    color: var(--text-color, #333);
    font-size: 2em;
    font-weight: 600;
}

.note-path {
    font-size: 14px;
    color: var(--text-muted, #666);
    font-family: var(--font-mono, 'Courier New', monospace);
}

.note-content {
    line-height: 1.6;
    color: var(--text-color, #333);
}

/* File List Styles - for when we need to show file listings */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary, white);
}

.file-item:hover {
    background: var(--hover-bg, #f8f9fa);
    border-color: var(--accent-color, #007acc);
    transform: translateY(-1px);
}

.file-item.folder {
    border-left: 4px solid var(--folder-color, #4CAF50);
}

.file-item.file {
    border-left: 4px solid var(--file-color, #2196F3);
}

.file-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.file-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-color, #333);
}

.file-date {
    font-size: 12px;
    color: var(--text-muted, #666);
    margin-left: 16px;
}

/* Loading and Error States */
.loading-message, .error-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted, #666);
}

.error-message {
    color: var(--error-color, #dc3545);
}

/* Responsive Design */
@media (max-width: 768px) {
    .notes-navigation {
        margin-left: 8px;
        height: 32px;
        font-size: 14px;
        flex-wrap: nowrap;
    }
    
    .breadcrumbs {
        font-size: 14px;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: visible;
    }
    
    .breadcrumb-item {
        padding: 8px 10px;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 32px;
        border-radius: 6px;
        margin: 0 2px;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
        font-size: 12px;
    }
    
    .dropdown-content {
        min-width: 250px;
        max-width: 90vw;
        font-size: 15px;
    }
    
    .dropdown-item {
        padding: 12px 16px;
        touch-action: manipulation;
    }
    
    .file-item {
        padding: 10px 12px;
    }
    
    .file-date {
        display: none;
    }
}
