/* Notes App Styles */

/* Notes List */
.notes-list {
    padding: 0;
    margin: 0;
}

.notes-list.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
}

.notes-empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.notes-empty-state .empty-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notes-empty-state .empty-icon img {
    width: 64px;
    height: 64px;
    display: block;
}

.notes-empty-state h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.notes-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* Note Item */
.note-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: var(--background-primary);
}

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

.note-item:active {
    background: var(--background-tertiary);
}

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

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.note-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.note-preview {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Note Editor */
.note-editor {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    overflow: hidden;
}

.note-title-input {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    outline: none;
    width: 100%;
}

.note-title-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.note-content-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0;
    margin: 0;
    outline: none;
    resize: none;
    font-family: inherit;
    line-height: 1.5;
    overflow-y: auto;
}

.note-content-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    flex-shrink: 0;
}

.editor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.word-count {
    color: var(--text-secondary);
}

.modified-indicator {
    color: var(--accent-color);
    font-weight: 500;
}

.delete-button {
    background: transparent;
    border: none;
    color: #ff4444;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-button:hover {
    background: rgba(255, 68, 68, 0.1);
}

.delete-button:active {
    background: rgba(255, 68, 68, 0.2);
}

/* Navigation Buttons - Note Editor specific */
.note-editor .navigation-bar .nav-button.cancel-button {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    padding: 0.5rem 1rem !important;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.note-editor .navigation-bar .nav-button.cancel-button:hover {
    color: var(--text-primary) !important;
}

.note-editor .navigation-bar .nav-button.save-button {
    color: var(--accent-color) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.note-editor .navigation-bar .nav-button.save-button:hover {
    color: var(--accent-color-hover) !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .note-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .editor-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Light theme adjustments */
[data-theme="light"] .note-item {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .editor-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Focus states */
.note-item:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.note-title-input:focus,
.note-content-input:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .note-header {
        gap: 0.5rem;
    }
    
    .note-title {
        font-size: 0.95rem;
    }
    
    .note-preview {
        font-size: 0.85rem;
    }
    
    .editor-content {
        padding: 0.75rem;
    }
    
    .note-title-input {
        font-size: 1.3rem;
    }
}

