/* Notes page styles */

.notes-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    margin-bottom: 24px;
}

.notes-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
}

.login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
}

.login-prompt p {
    color: #6b7280;
    margin-bottom: 16px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.note-card {
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.15s;
}

.note-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.note-visibility {
    margin-bottom: 8px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

.badge-public {
    background: #d1fae5;
    color: #065f46;
}

.badge-private {
    background: #f3f4f6;
    color: #6b7280;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
}

.note-title a {
    color: var(--text-color, #1f2937);
    text-decoration: none;
}

.note-title a:hover {
    color: var(--primary-color, #10b981);
}

.note-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: #9ca3af;
}

.note-actions {
    display: flex;
    gap: 12px;
}

.btn-text {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8125rem;
    padding: 0;
}

.btn-text:hover {
    text-decoration: underline;
}

.notes-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.notes-empty p {
    margin-bottom: 12px;
}

/* New note editor styles */
.editor-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.editor-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.editor-actions {
    display: flex;
    gap: 12px;
}

.title-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.25rem;
    font-weight: 500;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    margin-bottom: 16px;
    outline: none;
    color: var(--text-color, #1f2937);
    background: white;
}

.title-input:focus {
    border-color: var(--primary-color, #10b981);
}

.meta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-input {
    padding: 8px 12px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    outline: none;
    color: var(--text-color, #1f2937);
    background: white;
}

.meta-input:focus {
    border-color: var(--primary-color, #10b981);
}

.visibility-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.visibility-toggle label {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
}

.visibility-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color, #10b981);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-top: 16px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    font-size: 0.8125rem;
    color: #9ca3af;
}

.save-status.saving {
    color: #f59e0b;
}

.save-status.saved {
    color: #10b981;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* Note view page */
.note-view-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.note-view {
    background: white;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 32px;
}

.note-view-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.note-view-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.note-view-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color, #1f2937);
    margin: 0 0 12px;
    line-height: 1.4;
}

.note-view-author {
    font-size: 0.9375rem;
    color: #6b7280;
}

.note-view-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color, #1f2937);
    min-height: 200px;
}

.note-view-content h1,
.note-view-content h2,
.note-view-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}

.note-view-content h1 { font-size: 1.5rem; }
.note-view-content h2 { font-size: 1.25rem; }
.note-view-content h3 { font-size: 1.125rem; }

.note-view-content p {
    margin-bottom: 16px;
}

.note-view-content pre {
    background: #f6f8fa;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
}

.note-view-content code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.875rem;
}

.note-view-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 16px;
    margin: 16px 0;
    color: #6b7280;
}

.note-view-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    gap: 12px;
}

.btn-danger {
    background: #ef4444;
    color: white;
}
