/* Notes Main Content - no header needed, it's at page level now */

.notes-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.notes-view-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-half);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
    color: var(--text-secondary);
}

.view-toggle-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* Card View (default) */
.notes-list.notes-card-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

/* List View */
.notes-list.notes-list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.note-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.note-list-item:first-child {
    border-top: 1px solid var(--border-light);
}

.note-list-item:hover {
    background: var(--bg-hover);
}

.note-list-icon {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.note-list-icon svg {
    width: 100%;
    height: 100%;
}

.note-list-item-meeting .note-list-icon {
    color: var(--color-purple-text);
}

.note-list-content {
    flex: 1;
    min-width: 0;
}

.note-list-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-list-pin {
    margin-right: var(--space-1);
}

.note-list-preview {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-list-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: 2px;
}

.note-list-meta .note-area,
.note-list-meta .note-project {
    font-size: var(--font-size-12);
    padding: 0;
}

.note-list-date {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    white-space: nowrap;
}

.notes-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-12);
    color: var(--text-tertiary);
    font-size: var(--font-size-base);
}

/* Note Cards */
.note-card {
    position: relative;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 1;
}

/* Staggered animation for note cards - only when view is switching */
.view-container.animating .note-card {
    animation: fadeInUp var(--duration-slow) var(--ease-in-out) forwards;
    opacity: 0;
}

.view-container.animating .note-card:nth-child(1) { animation-delay: 0ms; }
.view-container.animating .note-card:nth-child(2) { animation-delay: 50ms; }
.view-container.animating .note-card:nth-child(3) { animation-delay: 100ms; }
.view-container.animating .note-card:nth-child(4) { animation-delay: 150ms; }
.view-container.animating .note-card:nth-child(5) { animation-delay: 200ms; }
.view-container.animating .note-card:nth-child(6) { animation-delay: 250ms; }
.view-container.animating .note-card:nth-child(7) { animation-delay: 300ms; }
.view-container.animating .note-card:nth-child(8) { animation-delay: 350ms; }
.view-container.animating .note-card:nth-child(n+9) { animation-delay: 400ms; }

.note-card:hover,
.note-card:focus,
.note-card:focus-visible {
    background: var(--bg-card);
    border: 1px solid #4A90D9 !important;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px) scale(1.005);
    outline: none;
}

.note-card-meeting {
    border-left: 3px solid var(--color-purple);
}

.note-pin-indicator {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    font-size: var(--font-size-14);
}

.note-meeting-indicator {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 20px;
    height: 20px;
    color: var(--color-purple-text);
}

.note-meeting-indicator svg {
    width: 100%;
    height: 100%;
}

.note-card-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    padding-right: var(--space-6);
}

.note-card-snippet {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    flex-wrap: wrap;
}

.note-area,
.note-project {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.note-area svg,
.note-project svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.note-date {
    margin-left: auto;
}
