/* Notes Floating Panel */

.notes-panel-float {
    position: fixed;
    bottom: calc(var(--status-bar-height, 30px) + 10px);
    left: calc(var(--toolbar-width, 48px) + 340px);
    width: 320px;
    max-height: 400px;
    background: var(--bg-panel, rgba(20, 20, 22, 0.88));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.10));
    border-radius: var(--radius-lg);
    z-index: 1200;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideInLeft var(--duration-normal) var(--ease-out);
}

.notes-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-medium, rgba(255, 255, 255, 0.10));
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.notes-panel-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.60));
}

.notes-panel-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.notes-add-btn {
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.10));
    border-radius: var(--radius-xs);
    color: var(--accent-primary, #D4AF37);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.notes-add-btn:hover {
    background: var(--accent-primary-dim, rgba(212, 175, 55, 0.10));
    border-color: var(--accent-primary, #D4AF37);
}

.notes-panel-close {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.notes-panel-close:hover {
    color: var(--text-primary, rgba(255, 255, 255, 0.92));
    border-color: var(--border-medium, rgba(255, 255, 255, 0.10));
}

.notes-panel-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Notes List */

.notes-list {
    overflow-y: auto;
    max-height: 340px;
    padding: 4px 0;
}

.notes-entry {
    display: flex;
    align-items: stretch;
    padding: 8px 8px;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    position: relative;
    transition: background var(--duration-fast) var(--ease-out);
}

.notes-entry:hover {
    background: var(--bg-hover, rgba(255, 255, 255, 0.04));
}

.notes-entry-color {
    width: 3px;
    min-height: 100%;
    border-radius: 2px;
    flex-shrink: 0;
    margin-right: 8px;
}

.notes-entry-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notes-entry-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.notes-entry-user {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary, rgba(255, 255, 255, 0.92));
}

.notes-entry-time {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
}

.notes-entry-text {
    width: 100%;
    min-height: 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-secondary, rgba(255, 255, 255, 0.60));
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
    padding: 4px 6px;
    resize: none;
    overflow: hidden;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.notes-entry-text:focus {
    border-color: var(--border-focus, rgba(212, 175, 55, 0.50));
    background: var(--bg-base, #0a0a0c);
    color: var(--text-primary, rgba(255, 255, 255, 0.92));
}

.notes-entry-text:disabled {
    cursor: default;
    opacity: 0.7;
}

.notes-delete-btn {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.notes-entry:hover .notes-delete-btn {
    opacity: 1;
}

.notes-delete-btn:hover {
    color: var(--accent-danger, #ef4444);
    border-color: var(--accent-danger, #ef4444);
}

/* Empty state */
#notes-empty {
    padding: 24px 16px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted, rgba(255, 255, 255, 0.35));
    letter-spacing: 0.3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#notes-empty svg {
    opacity: 0.3;
}

.notes-empty-title {
    font-weight: 600;
    color: var(--text-secondary, rgba(255, 255, 255, 0.60));
}

.notes-empty-hint {
    font-size: 11px;
}
