
/* General Buttons */
.save-post-actions-wrapper { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.save-post-btn, .save-post-note-btn { background-color: #0073aa; color: #fff; border: 1px solid #0073aa; padding: 6px 10px; cursor: pointer; border-radius: 4px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; transition: all 0.2s ease; line-height: 1.2; }
.save-post-btn:hover, .save-post-note-btn:hover { background-color: #005177; text-decoration: none; color: white; }
.save-post-btn.saved { background-color: #28a745; border-color: #28a745; }
.save-post-btn.saving { opacity: 0.7; cursor: not-allowed; }
.save-post-note-btn { background-color: #f0f0f1; border-color: #dcdcde; color: #50575e; }
.save-post-note-btn:hover { background-color: #fff; border-color: #c3c4c7; color: #1d2327; }
.save-post-note-btn.has-note { background-color: #fff8e5; border-color: #f0c33c; color: #1d2327; }

/* List Styles (Sidebar & Dashboard) */
.saved-posts-list, #dashboard-post-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.saved-post-item { 
    display: flex; 
    position: relative; 
    margin-bottom: 12px; 
    border: 1px solid #e0e0e0; 
    padding: 12px; 
    border-radius: 6px; 
    background-color: #fff; 
    transition: all 0.2s ease; 
    align-items: flex-start;
}
.saved-post-item:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-1px); }

/* Thumbnail */
.saved-post-item .post-thumbnail { margin-right: 12px; flex-shrink: 0; }
.saved-post-item .post-thumbnail img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; display: block; }
.saved-post-item .post-thumbnail.no-image { width: 60px; height: 60px; background-color: #f6f7f7; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 20px; }

/* Content Area */
.saved-post-item .post-details { flex-grow: 1; min-width: 0; padding-right: 25px; }
.saved-post-item h3 { margin: 0 0 4px 0 !important; font-size: 15px !important; line-height: 1.3; padding: 0; }
.saved-post-item h3 a { text-decoration: none; color: #2c3338; transition: color 0.2s; }
.saved-post-item h3 a:hover { color: #0073aa; }

/* Metadata (Category, Author, Date) */
.saved-post-meta { font-size: 11px; color: #646970; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.saved-post-meta span { display: inline-block; }
.saved-post-meta .separator { margin: 0 4px; opacity: 0.5; }

/* Excerpt */
.saved-post-item .post-excerpt { font-size: 13px; color: #50575e; line-height: 1.4; margin-bottom: 8px; }

/* Note Button in List */
.saved-post-item .post-actions { margin-top: 5px; }
.saved-post-item .save-post-note-btn { font-size: 11px; padding: 4px 8px; }
.saved-post-note-preview { margin-top: 10px; font-size: 0.85em; color: #666; background-color: #f9f9f9; padding: 8px; border-radius: 4px; border-left: 3px solid #ddd; }

/* Remove Button (Clean X top-right) */
.saved-post-remove { 
    position: absolute; 
    top: 5px; 
    right: 5px; 
    background: none; 
    border: none; 
    color: #d63638; 
    cursor: pointer; 
    font-size: 16px; 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    opacity: 0.6; 
    transition: all 0.2s; 
    padding: 0;
}
.saved-post-remove:hover { background-color: #fee; opacity: 1; }

/* Empty State */
.saved-posts-empty { text-align: center; padding: 30px 15px; background-color: #f9f9f9; border: 1px dashed #ddd; border-radius: 5px; color: #666; font-size: 14px; }
.saved-posts-empty-icon { font-size: 24px; margin-bottom: 8px; }
.saved-posts-empty h3 { font-size: 16px; margin: 0 0 5px 0; color: #333; }

/* Modal Styles */
.note-modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(2px); }
.note-modal-content { background-color: #fff; margin: 10% auto; width: 90%; max-width: 450px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); border: none; overflow: hidden; }
.note-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background-color: #f6f7f7; border-bottom: 1px solid #e0e0e0; }
.note-modal-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.close-modal { color: #666; font-size: 24px; font-weight: 300; cursor: pointer; line-height: 1; }
.close-modal:hover { color: #000; }
.note-modal-body { padding: 20px; }
#note-content { width: 100%; min-height: 150px; padding: 12px; border: 1px solid #dcdcde; border-radius: 4px; font-size: 14px; line-height: 1.5; resize: vertical; box-shadow: inset 0 1px 2px rgba(0,0,0,0.05); }
#note-content:focus { border-color: #0073aa; box-shadow: 0 0 0 1px #0073aa; outline: none; }
.note-modal-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-top: 1px solid #e0e0e0; background-color: #fff; }
.close-note-btn { background-color: #f6f7f7; color: #2c3338; border: 1px solid #dcdcde; font-weight: 500; }
.close-note-btn:hover { background-color: #f0f0f1; border-color: #c3c4c7; }

/* Dashboard Controls */
#saved-posts-dashboard { max-width: 900px; margin: 0 auto; }
.dashboard-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; padding: 15px; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; }
.dashboard-search { flex-grow: 1; min-width: 200px; }
.dashboard-search input[type="search"] { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; }
.dashboard-filters { display: flex; flex-wrap: wrap; gap: 10px; flex-grow: 1; }
.dashboard-filters select { width: 100%; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background-color: #fff; }
#dashboard-post-list-container { position: relative; min-height: 150px; }
.dashboard-loader { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.95); padding: 10px 20px; border-radius: 20px; z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.1); font-weight: 500; border: 1px solid #eee; display:none; }

/* User Note Box (top of article) */
.user-article-note-box { background-color: #fff8e5; border: 1px solid #f0c33c; border-left: 4px solid #f0c33c; border-radius: 6px; padding: 14px 16px; margin: 0 0 25px 0; }
.user-article-note-header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.user-article-note-icon { font-size: 14px; line-height: 1; }
.user-article-note-title { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b5500; flex-grow: 1; }
.user-article-note-edit { background: none; border: 1px solid #d9b53c; color: #6b5500; padding: 3px 10px; font-size: 12px; border-radius: 4px; cursor: pointer; line-height: 1.2; }
.user-article-note-edit:hover { background-color: #f0c33c; color: #1d2327; }
.user-article-note-text { font-size: 14px; line-height: 1.6; color: #3d3000; white-space: pre-wrap; }
