Files
bookmarksite/styles.css
Rainer Koschnick 0abee5b794 Add comprehensive database setup and user management system
- Implement PostgreSQL database schema with users and bookmarks tables
- Add database connection pooling with retry logic and error handling
- Create migration system with automatic schema initialization
- Add database CLI tools for management (init, status, validate, etc.)
- Include comprehensive error handling and diagnostics
- Add development seed data and testing utilities
- Implement health monitoring and connection pool statistics
- Create detailed documentation and troubleshooting guide

Database features:
- Users table with authentication fields and email verification
- Bookmarks table with user association and metadata
- Proper indexes for performance optimization
- Automatic timestamp triggers
- Transaction support with rollback handling
- Connection pooling (20 max connections, 30s idle timeout)
- Graceful shutdown handling

CLI commands available:
- npm run db:init - Initialize database
- npm run db:status - Check database status
- npm run db:validate - Validate schema
- npm run db:test - Run database tests
- npm run db:diagnostics - Full diagnostics
2025-07-19 23:21:50 +02:00

3926 lines
68 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
}
/* Screen reader only content */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Focus indicators for accessibility */
*:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
}
/* Enhanced focus for buttons */
button:focus,
.btn:focus {
outline: 3px solid #2c5aa0;
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.3);
}
/* Enhanced focus for form inputs */
input:focus,
textarea:focus,
select:focus {
outline: 3px solid #2c5aa0;
outline-offset: 2px;
border-color: #2c5aa0;
box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.3);
}
/* Enhanced focus for interactive bookmark items */
.bookmark-item:focus {
outline: 3px solid #2c5aa0;
outline-offset: 2px;
box-shadow: 0 0 0 4px rgba(44, 90, 160, 0.3);
background-color: #f0f7ff;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
header h1 {
color: #2c3e50;
font-size: 2rem;
}
.header-actions {
display: flex;
gap: 10px;
}
.toolbar {
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.search-container {
display: flex;
gap: 10px;
flex: 1;
max-width: 400px;
}
.search-container input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.actions-container {
display: flex;
gap: 20px;
flex-wrap: wrap;
align-items: flex-start;
}
.action-group {
display: flex;
flex-direction: column;
gap: 8px;
align-items: stretch;
min-width: fit-content;
width: auto;
}
.group-label {
font-size: 11px;
font-weight: 600;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
text-align: center;
white-space: nowrap;
}
.action-group .btn {
margin: 0;
width: 120px;
text-align: center;
font-size: 13px;
padding: 6px 12px;
flex-shrink: 0;
}
.danger-group {
border-left: 2px solid #dc3545;
padding-left: 15px;
margin-left: 10px;
}
.danger-group .group-label {
color: #dc3545;
}
/* Legacy support for old .actions class */
.actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.stats {
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.stats-filter {
font-weight: 500;
padding: 8px 12px;
border-radius: 4px;
background: #ecf0f1;
border: 2px solid transparent;
cursor: pointer;
transition: all 0.2s ease;
font-size: 14px;
}
.stats-filter:hover {
background: #d5dbdb;
transform: translateY(-1px);
}
.stats-filter.active {
background: #2c5aa0;
color: white;
border-color: #1e3f73;
}
.stats-filter.active:hover {
background: #1e3f73;
}
.bookmarks-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 20px;
margin-top: 20px;
}
.folder-card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
overflow: visible;
transition: transform 0.2s, box-shadow 0.2s;
}
.folder-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.folder-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
position: relative;
}
.folder-header.no-folder {
background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}
.folder-title {
font-size: 1.2rem;
font-weight: 600;
margin: 0;
display: flex;
align-items: center;
gap: 10px;
}
.folder-count {
background: rgba(255,255,255,0.2);
padding: 4px 8px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 500;
}
.folder-stats {
margin-top: 8px;
font-size: 0.85rem;
opacity: 0.9;
display: flex;
gap: 15px;
}
.bookmark-list {
max-height: 400px;
overflow-y: auto;
overflow-x: hidden;
position: relative;
}
.bookmark-item {
padding: 12px 20px;
border-bottom: 1px solid #f0f0f0;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
position: relative;
}
.bookmark-item:hover {
background-color: #f8f9fa;
transform: translateX(4px);
}
.bookmark-item:last-child {
border-bottom: none;
}
.bookmark-link {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
text-decoration: none;
color: inherit;
min-width: 0;
}
.bookmark-favicon {
width: 16px;
height: 16px;
flex-shrink: 0;
display: none; /* Hide by default */
}
.bookmark-favicon[src]:not([src=""]) {
display: block; /* Only show when there's actually a favicon */
}
.bookmark-info {
flex: 1;
min-width: 0;
}
.bookmark-title {
font-weight: 500;
color: #2c3e50;
margin-bottom: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
}
.bookmark-url {
color: #7f8c8d;
font-size: 14px;
word-break: break-all;
opacity: 0;
max-height: 0;
overflow: hidden;
transition: all 0.3s ease;
margin-top: 0;
}
.bookmark-item:hover .bookmark-url {
opacity: 1;
max-height: 50px;
margin-top: 4px;
}
.bookmark-item:hover .bookmark-title {
white-space: normal;
overflow: visible;
text-overflow: unset;
word-wrap: break-word;
line-height: 1.4;
}
.bookmark-folder {
color: #3498db;
font-size: 12px;
background: #ecf0f1;
padding: 2px 6px;
border-radius: 3px;
margin-top: 4px;
display: inline-block;
}
.bookmark-status {
width: 16px;
height: 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
flex-shrink: 0;
}
.status-valid {
background: #1e7e34;
color: white;
}
.status-invalid {
background: #bd2130;
color: white;
}
.status-testing {
background: #e0a800;
color: #212529;
animation: pulse 1.5s infinite;
}
.status-duplicate {
background: #138496;
color: white;
}
.status-unknown {
background: #545b62;
color: white;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.bookmark-actions {
display: flex;
gap: 8px;
}
.btn {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 5px;
transition: all 0.2s;
}
.btn:hover {
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.btn-primary {
background: #2c5aa0;
color: white;
}
.btn-secondary {
background: #6c757d;
color: white;
}
.btn-success {
background: #1e7e34;
color: white;
}
.btn-warning {
background: #e0a800;
color: #212529;
}
.btn-danger {
background: #bd2130;
color: white;
}
.btn-info {
background: #138496;
color: white;
}
.btn-small {
padding: 6px 12px;
font-size: 12px;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
.modal-content {
background-color: white;
margin: 10% auto;
padding: 30px;
border-radius: 8px;
width: 90%;
max-width: 500px;
position: relative;
}
.close {
position: absolute;
right: 15px;
top: 15px;
font-size: 24px;
font-weight: bold;
cursor: pointer;
color: #aaa;
}
.close:hover {
color: #333;
}
/* Advanced import modal styles */
.advanced-import-content {
max-width: 700px;
}
.import-preview-content {
max-width: 800px;
max-height: 90vh;
}
.import-tabs, .preview-tabs {
display: flex;
border-bottom: 2px solid #e9ecef;
margin-bottom: 20px;
}
.import-tab, .preview-tab {
background: none;
border: none;
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #6c757d;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.import-tab:hover, .preview-tab:hover {
color: #495057;
background-color: #f8f9fa;
}
.import-tab.active, .preview-tab.active {
color: #007bff;
border-bottom-color: #007bff;
background-color: #f8f9fa;
}
.import-tab-content, .preview-tab-content {
display: none;
}
.import-tab-content.active, .preview-tab-content.active {
display: block;
}
.duplicate-handling {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin-top: 15px;
}
.duplicate-handling h3 {
margin-top: 0;
margin-bottom: 15px;
color: #495057;
font-size: 16px;
}
.sync-section {
padding: 10px 0;
}
.sync-options {
margin-top: 15px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
}
.cloud-status, .sync-status {
margin-top: 10px;
padding: 8px 12px;
border-radius: 4px;
font-size: 14px;
}
.cloud-status.connected, .sync-status.connected {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.cloud-status.error, .sync-status.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
.qr-sync-container {
display: flex;
gap: 20px;
align-items: flex-start;
}
.qr-generate, .qr-scan {
flex: 1;
text-align: center;
}
.qr-display, .qr-scan-area {
margin-top: 10px;
min-height: 200px;
border: 2px dashed #dee2e6;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
background-color: #f8f9fa;
}
.local-sync-container {
text-align: center;
}
.import-summary {
margin-bottom: 20px;
}
.import-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 15px;
margin-bottom: 20px;
}
.stat-item {
text-align: center;
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.stat-number {
display: block;
font-size: 24px;
font-weight: bold;
color: #007bff;
margin-bottom: 5px;
}
.stat-label {
font-size: 12px;
color: #6c757d;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.preview-content {
max-height: 400px;
overflow-y: auto;
}
.preview-list {
space-y: 10px;
}
.preview-item {
padding: 12px;
border: 1px solid #e9ecef;
border-radius: 6px;
margin-bottom: 8px;
background-color: #fff;
}
.preview-item.duplicate {
border-left: 4px solid #ffc107;
background-color: #fff3cd;
}
.preview-item.new {
border-left: 4px solid #28a745;
background-color: #d4edda;
}
.preview-bookmark-title {
font-weight: 600;
color: #495057;
margin-bottom: 4px;
}
.preview-bookmark-url {
font-size: 12px;
color: #6c757d;
word-break: break-all;
margin-bottom: 4px;
}
.preview-bookmark-folder {
font-size: 11px;
color: #007bff;
background-color: #e3f2fd;
padding: 2px 6px;
border-radius: 3px;
display: inline-block;
}
.folder-tree {
font-family: monospace;
font-size: 14px;
line-height: 1.4;
}
.folder-tree-item {
padding: 4px 0;
color: #495057;
}
.folder-tree-item.folder {
font-weight: 600;
color: #007bff;
}
.folder-tree-item.bookmark {
color: #6c757d;
padding-left: 20px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: #2c3e50;
}
.form-group input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.folder-input-container {
position: relative;
}
.folder-input-container input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
background-color: white;
}
.folder-input-container input:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
.modal-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 20px;
}
.progress-container {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-top: 20px;
}
.progress-bar {
width: 100%;
height: 20px;
background: #ecf0f1;
border-radius: 10px;
overflow: hidden;
margin-bottom: 10px;
}
.progress-fill {
height: 100%;
background: #3498db;
width: 0%;
transition: width 0.3s ease;
}
#progressText {
text-align: center;
color: #7f8c8d;
font-size: 14px;
}
.empty-state {
text-align: center;
padding: 60px 20px;
color: #7f8c8d;
}
.empty-state h3 {
margin-bottom: 10px;
color: #95a5a6;
}
/* Loading state styles */
.loading-state {
text-align: center;
padding: 60px 20px;
color: #7f8c8d;
}
.loading-state h3 {
margin-bottom: 10px;
color: #95a5a6;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Pagination controls */
.pagination-controls {
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.pagination-info {
color: #7f8c8d;
font-size: 14px;
}
.pagination-buttons {
display: flex;
align-items: center;
gap: 15px;
}
.page-numbers {
color: #2c3e50;
font-weight: 500;
padding: 0 10px;
}
.pagination-buttons button:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.pagination-buttons button:disabled:hover {
transform: none;
box-shadow: none;
}
.bookmark-preview {
display: flex;
align-items: center;
gap: 12px;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
margin-bottom: 20px;
}
.bookmark-preview .bookmark-info {
flex: 1;
min-width: 0;
}
.bookmark-preview .bookmark-title {
font-size: 16px;
margin-bottom: 4px;
white-space: normal;
overflow: visible;
text-overflow: unset;
word-wrap: break-word;
}
.bookmark-preview .bookmark-url {
font-size: 14px;
margin-bottom: 4px;
}
.bookmark-preview .bookmark-folder {
margin-top: 8px;
}
.bookmark-dates {
margin-top: 8px;
}
.bookmark-date {
font-size: 12px;
color: #6c757d;
margin-bottom: 2px;
}
/* Drag and Drop Styles */
.bookmark-item.dragging {
opacity: 0.5;
transform: rotate(2deg);
cursor: grabbing;
}
.folder-card.drag-over {
border: 2px dashed #3498db;
background-color: rgba(52, 152, 219, 0.1);
transform: scale(1.02);
}
.bookmark-item {
cursor: grab;
}
.bookmark-item:active {
cursor: grabbing;
}
/* Drag handle removed - users can drag from anywhere on the bookmark item */
.bookmark-url-link {
color: #3498db;
text-decoration: none;
font-size: 14px;
word-break: break-all;
display: block;
margin-bottom: 4px;
}
.bookmark-url-link:hover {
text-decoration: underline;
color: #2980b9;
}
/* Mobile Touch Optimizations */
@media (max-width: 768px) {
.container {
padding: 10px;
}
/* Mobile toolbar adjustments */
.actions-container {
flex-direction: column;
gap: 15px;
align-items: stretch;
}
.action-group {
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
padding: 10px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.group-label {
width: 100%;
text-align: center;
margin-bottom: 8px;
font-size: 12px;
order: -1;
}
.action-group .btn {
min-width: auto;
flex: 1;
min-width: 80px;
font-size: 12px;
padding: 8px 12px;
}
.danger-group {
border-left: none;
border-top: 2px solid #dc3545;
padding-left: 10px;
padding-top: 15px;
margin-left: 0;
margin-top: 10px;
}
/* Enhanced touch targets - minimum 44px */
.btn {
min-height: 44px;
min-width: 44px;
padding: 12px 20px;
font-size: 16px;
touch-action: manipulation;
}
.btn-small {
min-height: 44px;
min-width: 44px;
padding: 10px 16px;
font-size: 14px;
}
.stats-filter {
min-height: 44px;
min-width: 44px;
padding: 12px 16px;
font-size: 16px;
touch-action: manipulation;
}
/* Enhanced bookmark items for touch */
.bookmark-item {
min-height: 60px;
padding: 16px 20px;
flex-direction: row;
align-items: center;
gap: 12px;
touch-action: pan-x;
position: relative;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.bookmark-item.swiping {
transform: translateX(var(--swipe-offset, 0));
transition: none;
}
.bookmark-item.swipe-left {
background-color: #dc3545;
color: white;
}
.bookmark-item.swipe-right {
background-color: #28a745;
color: white;
}
/* Swipe action indicators */
.bookmark-item::before,
.bookmark-item::after {
content: '';
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 24px;
height: 24px;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1;
}
.bookmark-item::before {
left: 20px;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat center;
background-size: contain;
}
.bookmark-item::after {
right: 20px;
background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') no-repeat center;
background-size: contain;
}
.bookmark-item.swipe-right::before {
opacity: 1;
}
.bookmark-item.swipe-left::after {
opacity: 1;
}
/* Touch-friendly form inputs */
input, select, textarea {
min-height: 44px;
font-size: 16px; /* Prevents zoom on iOS */
padding: 12px;
touch-action: manipulation;
}
/* Enhanced modal layouts for mobile */
.modal-content {
margin: 5% auto;
width: 95%;
max-width: none;
max-height: 90vh;
overflow-y: auto;
padding: 20px;
border-radius: 12px;
}
.modal-content h2 {
font-size: 1.5rem;
margin-bottom: 20px;
text-align: center;
}
.modal-actions {
flex-direction: column;
gap: 12px;
margin-top: 24px;
}
.modal-actions .btn {
width: 100%;
justify-content: center;
}
/* Close button enhancement for touch */
.close {
font-size: 32px;
width: 44px;
height: 44px;
display: flex;
align-items: center;
justify-content: center;
right: 10px;
top: 10px;
touch-action: manipulation;
}
header {
flex-direction: column;
gap: 20px;
text-align: center;
padding: 16px;
}
.header-actions {
flex-direction: column;
width: 100%;
gap: 12px;
}
.header-actions .btn {
width: 100%;
justify-content: center;
}
.toolbar {
flex-direction: column;
align-items: stretch;
gap: 16px;
padding: 16px;
}
.search-container {
max-width: none;
width: 100%;
}
.search-container input {
flex: 1;
min-height: 44px;
font-size: 16px;
}
.actions {
justify-content: center;
flex-wrap: wrap;
gap: 12px;
}
.actions .btn {
flex: 1;
min-width: 120px;
}
.stats {
justify-content: center;
flex-wrap: wrap;
gap: 12px;
padding: 16px;
}
.stats-filter {
flex: 1;
min-width: 100px;
text-align: center;
}
/* Enhanced folder cards for mobile */
.bookmarks-list {
grid-template-columns: 1fr;
gap: 16px;
}
.folder-card {
border-radius: 16px;
overflow: hidden;
}
.folder-header {
padding: 20px 16px;
}
.bookmark-list {
max-height: 60vh;
}
.bookmark-info {
flex: 1;
min-width: 0;
}
.bookmark-title {
font-size: 16px;
line-height: 1.4;
}
.bookmark-url {
font-size: 14px;
}
.bookmark-status {
width: 20px;
height: 20px;
font-size: 12px;
flex-shrink: 0;
}
/* Pull-to-refresh indicator */
.pull-to-refresh {
position: fixed;
top: 0;
left: 50%;
transform: translateX(-50%) translateY(-100%);
background: rgba(52, 152, 219, 0.9);
color: white;
padding: 12px 24px;
border-radius: 0 0 12px 12px;
font-size: 14px;
font-weight: 500;
z-index: 1001;
transition: transform 0.3s ease;
backdrop-filter: blur(10px);
}
.pull-to-refresh.visible {
transform: translateX(-50%) translateY(0);
}
.pull-to-refresh.active {
background: rgba(40, 167, 69, 0.9);
}
/* Enhanced touch feedback */
.bookmark-item:active {
background-color: rgba(52, 152, 219, 0.1);
transform: scale(0.98);
}
.btn:active {
transform: scale(0.95);
}
.stats-filter:active {
transform: scale(0.95);
}
/* Improved form layouts */
.form-group {
margin-bottom: 24px;
}
.form-group label {
font-size: 16px;
margin-bottom: 8px;
}
/* Enhanced duplicate modal for mobile */
.duplicate-modal-content {
max-width: 95%;
margin: 5% auto;
max-height: 85vh;
}
.duplicate-group-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.duplicate-bookmark-item {
flex-direction: column;
align-items: flex-start;
padding: 16px;
}
.duplicate-bookmark-meta {
flex-direction: column;
gap: 8px;
}
.resolution-options label {
padding: 16px;
font-size: 16px;
}
/* Export modal mobile optimizations */
.export-preview {
margin-top: 16px;
padding: 16px;
}
/* Backup modal mobile optimizations */
.backup-stats {
flex-direction: column;
gap: 12px;
}
.backup-stat {
padding: 16px;
}
.backup-stat strong {
font-size: 20px;
}
}
/* Security and Privacy Styles */
.privacy-controls {
margin: 20px 0;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #ffc107;
}
.privacy-controls h4 {
margin-bottom: 15px;
color: #2c3e50;
font-size: 16px;
}
.privacy-toggle {
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.privacy-toggle input[type="checkbox"] {
margin: 0;
width: auto;
}
.privacy-toggle label {
margin: 0;
font-size: 14px;
color: #495057;
cursor: pointer;
}
/* Security Settings Modal */
.security-audit-content {
max-width: 900px;
max-height: 90vh;
overflow-y: auto;
}
.audit-controls {
display: flex;
gap: 10px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.audit-log-container {
max-height: 500px;
overflow-y: auto;
border: 1px solid #e9ecef;
border-radius: 8px;
background-color: #f8f9fa;
padding: 15px;
}
.audit-log-item {
background: white;
border: 1px solid #e9ecef;
border-radius: 6px;
padding: 12px;
margin-bottom: 10px;
font-size: 14px;
}
.audit-log-item:last-child {
margin-bottom: 0;
}
.audit-log-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-weight: 600;
}
.audit-action {
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
text-transform: uppercase;
font-weight: 600;
}
.audit-action.success {
background-color: #d4edda;
color: #155724;
}
.audit-action.warning {
background-color: #fff3cd;
color: #856404;
}
.audit-action.danger {
background-color: #f8d7da;
color: #721c24;
}
.audit-action.info {
background-color: #d1ecf1;
color: #0c5460;
}
.audit-action.default {
background-color: #e2e3e5;
color: #383d41;
}
.audit-timestamp {
font-size: 12px;
color: #6c757d;
font-weight: normal;
}
.audit-details {
margin-bottom: 8px;
color: #495057;
font-size: 13px;
}
.audit-meta {
font-size: 11px;
color: #adb5bd;
font-style: italic;
}
.empty-audit-log {
text-align: center;
color: #6c757d;
font-style: italic;
padding: 40px 20px;
}
/* Security Authentication Modal */
#securityAuthModal .modal-content {
max-width: 400px;
text-align: center;
}
#securityAuthModal h2 {
color: #dc3545;
margin-bottom: 15px;
}
#securityAuthModal p {
margin-bottom: 20px;
color: #6c757d;
}
#securityAuthModal .form-group {
text-align: left;
}
/* Password setup group styling */
#passwordSetupGroup {
background-color: #fff3cd;
padding: 15px;
border-radius: 6px;
border: 1px solid #ffeaa7;
margin-top: 10px;
}
#passwordSetupGroup label {
margin-top: 15px;
}
#passwordSetupGroup label:first-child {
margin-top: 0;
}
/* Security button styling */
#securityBtn {
background-color: #ffc107;
border-color: #ffc107;
color: #212529;
}
#securityBtn:hover {
background-color: #e0a800;
border-color: #d39e00;
}
/* Enhanced bookmark item security indicators */
.bookmark-item.private {
border-left: 4px solid #6f42c1;
background-color: rgba(111, 66, 193, 0.05);
}
.bookmark-item.encrypted {
border-right: 4px solid #28a745;
background-color: rgba(40, 167, 69, 0.05);
}
.bookmark-item.private.encrypted {
background: linear-gradient(90deg,
rgba(111, 66, 193, 0.05) 0%,
rgba(111, 66, 193, 0.05) 50%,
rgba(40, 167, 69, 0.05) 50%,
rgba(40, 167, 69, 0.05) 100%);
}
.bookmark-security-indicators {
display: flex;
gap: 4px;
margin-left: auto;
align-items: center;
}
.security-indicator {
width: 16px;
height: 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: bold;
}
.security-indicator.private {
background-color: #6f42c1;
color: white;
}
.security-indicator.encrypted {
background-color: #28a745;
color: white;
}
/* Responsive adjustments for security modals */
@media (max-width: 768px) {
.security-audit-content {
max-width: 95%;
margin: 5% auto;
}
.audit-controls {
flex-direction: column;
}
.audit-controls .btn {
width: 100%;
}
.audit-log-header {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.privacy-controls {
margin: 15px 0;
padding: 12px;
}
.privacy-toggle {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
#passwordSetupGroup {
padding: 12px;
}
}
* Settings Modal Styles */
.settings-info {
margin-top: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 5px;
border-left: 4px solid #3498db;
}
.settings-info h3 {
margin-bottom: 10px;
color: #2c3e50;
font-size: 16px;
}
.settings-info ul {
list-style-type: none;
padding-left: 0;
}
.settings-info li {
margin-bottom: 8px;
padding: 5px 0;
border-bottom: 1px solid #e9ecef;
}
.settings-info li:last-child {
border-bottom: none;
}
.settings-info strong {
color: #2c3e50;
font-weight: 600;
}
.help-text {
font-size: 12px;
color: #6c757d;
margin-top: 5px;
font-style: italic;
}
/* Enhanced form group spacing for settings */
#settingsModal .form-group {
margin-bottom: 20px;
}
#settingsModal .modal-content {
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
}
/* Settings button styling */
#settingsBtn {
background-color: #6c757d;
border-color: #6c757d;
}
#settingsBtn:hover {
background-color: #5a6268;
border-color: #545b62;
}
/* Enhanced error category display in bookmarks */
.bookmark-error-category {
font-size: 11px;
color: #6c757d;
font-style: italic;
margin-top: 2px;
}
.bookmark-last-tested {
font-size: 10px;
color: #adb5bd;
margin-top: 2px;
}
/* Error category color coding */
.error-network_error { color: #dc3545; }
.error-timeout { color: #fd7e14; }
.error-http_error { color: #e83e8c; }
.error-cors_blocked { color: #6f42c1; }
.error-invalid_url { color: #20c997; }
.error-ssl_error { color: #ffc107; }
.error-dns_error { color: #17a2b8; }
.error-connection_refused { color: #28a745; }
.error-unknown { color: #6c757d; }
/* Duplicate Modal Styles */
.duplicate-modal-content {
max-width: 800px;
max-height: 90vh;
overflow-y: auto;
}
.duplicate-preview {
max-height: 400px;
overflow-y: auto;
margin-bottom: 20px;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 15px;
background-color: #f8f9fa;
}
.duplicate-group {
margin-bottom: 25px;
padding: 15px;
border: 1px solid #dee2e6;
border-radius: 8px;
background-color: white;
}
.duplicate-group-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #e9ecef;
}
.duplicate-group-title {
font-weight: 600;
color: #2c3e50;
margin: 0;
}
.duplicate-group-type {
font-size: 12px;
padding: 4px 8px;
border-radius: 12px;
font-weight: 500;
text-transform: uppercase;
}
.duplicate-type-exact_url {
background-color: #dc3545;
color: white;
}
.duplicate-type-url_variant {
background-color: #fd7e14;
color: white;
}
.duplicate-type-fuzzy_title {
background-color: #17a2b8;
color: white;
}
.duplicate-confidence {
font-size: 12px;
color: #6c757d;
margin-left: 10px;
}
.duplicate-bookmarks {
display: flex;
flex-direction: column;
gap: 10px;
}
.duplicate-bookmark-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border: 1px solid #e9ecef;
border-radius: 6px;
background-color: #f8f9fa;
position: relative;
}
.duplicate-bookmark-item.selected {
border-color: #28a745;
background-color: #d4edda;
}
.duplicate-bookmark-item.to-delete {
border-color: #dc3545;
background-color: #f8d7da;
opacity: 0.7;
}
.duplicate-bookmark-select {
margin-right: 8px;
}
.duplicate-bookmark-info {
flex: 1;
min-width: 0;
}
.duplicate-bookmark-title {
font-weight: 500;
color: #2c3e50;
margin-bottom: 4px;
word-wrap: break-word;
}
.duplicate-bookmark-url {
color: #6c757d;
font-size: 13px;
word-break: break-all;
margin-bottom: 4px;
}
.duplicate-bookmark-meta {
display: flex;
gap: 15px;
font-size: 11px;
color: #adb5bd;
}
.duplicate-bookmark-folder {
color: #3498db;
font-size: 11px;
background: #e3f2fd;
padding: 2px 6px;
border-radius: 3px;
}
.duplicate-resolution {
margin-bottom: 20px;
}
.duplicate-resolution h3 {
margin-bottom: 15px;
color: #2c3e50;
}
.resolution-options {
display: flex;
flex-direction: column;
gap: 10px;
}
.resolution-options label {
display: flex;
align-items: center;
gap: 8px;
padding: 10px;
border: 1px solid #e9ecef;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
}
.resolution-options label:hover {
background-color: #f8f9fa;
border-color: #3498db;
}
.resolution-options input[type="radio"]:checked + label,
.resolution-options label:has(input[type="radio"]:checked) {
background-color: #e3f2fd;
border-color: #3498db;
color: #1976d2;
}
.manual-resolution-controls {
margin-top: 15px;
padding: 15px;
background-color: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 6px;
display: none;
}
.manual-resolution-controls.active {
display: block;
}
.manual-resolution-help {
font-size: 14px;
color: #856404;
margin-bottom: 10px;
}
/* Responsive adjustments for duplicate modal */
@media (max-width: 768px) {
.duplicate-modal-content {
max-width: 95%;
margin: 5% auto;
}
.duplicate-group-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.duplicate-bookmark-item {
flex-direction: column;
align-items: flex-start;
}
.duplicate-bookmark-meta {
flex-direction: column;
gap: 5px;
}
}
/* Export Modal Styles */
.export-preview {
margin-top: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.export-preview h3 {
margin-bottom: 10px;
color: #2c3e50;
font-size: 16px;
}
.export-preview-content {
font-size: 14px;
color: #6c757d;
}
.export-stats {
padding: 10px;
background-color: white;
border-radius: 6px;
border: 1px solid #dee2e6;
text-align: center;
}
.export-stats span {
font-weight: 600;
color: #2c3e50;
}
#exportModal .form-group select {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
background-color: white;
}
#exportModal .form-group select:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
/* Backup Reminder Modal Styles */
.backup-reminder-content {
text-align: center;
margin-bottom: 20px;
}
.backup-reminder-content p {
font-size: 16px;
color: #2c3e50;
margin-bottom: 20px;
line-height: 1.5;
}
.backup-stats {
display: flex;
justify-content: space-around;
gap: 20px;
margin-top: 20px;
}
.backup-stat {
text-align: center;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
flex: 1;
}
.backup-stat strong {
display: block;
font-size: 24px;
color: #e74c3c;
margin-bottom: 5px;
}
#backupReminderModal .modal-actions {
justify-content: center;
gap: 15px;
}
/* Responsive adjustments for backup modal */
@media (max-width: 768px) {
.backup-stats {
flex-direction: column;
gap: 10px;
}
.backup-stat {
padding: 10px;
}
.backup-stat strong {
font-size: 20px;
}
}
/* Advanced Search Modal Styles */
.advanced-search-content {
max-width: 700px;
max-height: 90vh;
overflow-y: auto;
}
.search-actions {
display: flex;
gap: 10px;
justify-content: flex-end;
margin-top: 20px;
flex-wrap: wrap;
}
.saved-searches-section,
.search-history-section {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e9ecef;
}
.saved-searches-section h3,
.search-history-section h3 {
margin-bottom: 15px;
color: #2c3e50;
font-size: 16px;
}
.saved-searches-list,
.search-history-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 200px;
overflow-y: auto;
}
.saved-search-item,
.search-history-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s;
}
.saved-search-item:hover,
.search-history-item:hover {
background-color: #e3f2fd;
border-color: #3498db;
}
.saved-search-name,
.search-history-query {
font-weight: 500;
color: #2c3e50;
flex: 1;
margin-right: 10px;
}
.saved-search-details,
.search-history-details {
font-size: 12px;
color: #6c757d;
margin-top: 4px;
}
.saved-search-actions,
.search-history-actions {
display: flex;
gap: 5px;
}
.saved-search-actions button,
.search-history-actions button {
padding: 4px 8px;
font-size: 12px;
border: none;
border-radius: 3px;
cursor: pointer;
transition: all 0.2s;
}
.btn-use {
background-color: #28a745;
color: white;
}
.btn-use:hover {
background-color: #218838;
}
.btn-delete {
background-color: #dc3545;
color: white;
}
.btn-delete:hover {
background-color: #c82333;
}
.empty-searches,
.empty-history {
text-align: center;
color: #6c757d;
font-style: italic;
padding: 20px;
}
/* Enhanced search container for advanced search button */
.search-container {
display: flex;
gap: 8px;
flex: 1;
max-width: 500px;
}
.search-container input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
#advancedSearchBtn {
white-space: nowrap;
}
/* Search suggestions styling */
#searchSuggestions {
background: white;
border: 1px solid #ddd;
border-radius: 4px;
max-height: 200px;
overflow-y: auto;
}
/* Custom date range styling */
#customDateRange {
display: none;
padding: 15px;
background-color: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
margin-top: 10px;
}
#customDateRange.active {
display: block;
}
#customDateRange label {
display: block;
margin-bottom: 5px;
margin-top: 15px;
}
#customDateRange label:first-child {
margin-top: 0;
}
#customDateRange input {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
/* Analytics Dashboard Styles */
.analytics-modal-content {
max-width: 1200px;
max-height: 90vh;
overflow-y: auto;
padding: 30px;
}
.analytics-tabs {
display: flex;
gap: 5px;
margin-bottom: 30px;
border-bottom: 2px solid #e9ecef;
}
.analytics-tab {
padding: 12px 24px;
border: none;
background: transparent;
color: #6c757d;
cursor: pointer;
font-weight: 500;
border-bottom: 3px solid transparent;
transition: all 0.2s ease;
}
.analytics-tab:hover {
color: #2c3e50;
background-color: #f8f9fa;
}
.analytics-tab.active {
color: #3498db;
border-bottom-color: #3498db;
background-color: #f8f9fa;
}
.analytics-content {
min-height: 500px;
}
.analytics-tab-content {
display: none;
}
.analytics-tab-content.active {
display: block;
}
/* Summary Cards */
.analytics-summary {
margin-bottom: 30px;
}
.summary-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.summary-card {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 25px;
border-radius: 12px;
text-align: center;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
transition: transform 0.2s ease;
}
.summary-card:hover {
transform: translateY(-2px);
}
.summary-value {
font-size: 2.5rem;
font-weight: bold;
margin-bottom: 8px;
}
.summary-label {
font-size: 0.9rem;
opacity: 0.9;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Chart Containers */
.analytics-charts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 30px;
}
.chart-container {
background: white;
padding: 25px;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
border: 1px solid #e9ecef;
}
.chart-container h3 {
margin-bottom: 20px;
color: #2c3e50;
font-size: 1.2rem;
text-align: center;
}
.chart-container canvas {
max-width: 100%;
height: auto;
}
/* Trends Controls */
.trends-controls {
margin-bottom: 30px;
display: flex;
justify-content: center;
}
.trends-controls select {
padding: 10px 15px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 14px;
background: white;
color: #2c3e50;
}
/* Health Report Styles */
.health-summary {
background: #f8f9fa;
padding: 25px;
border-radius: 12px;
margin-bottom: 30px;
border-left: 5px solid #28a745;
}
.health-metric {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
font-size: 16px;
}
.health-metric:last-child {
margin-bottom: 0;
}
.health-label {
font-weight: 600;
color: #2c3e50;
}
.health-score {
font-size: 1.5rem;
font-weight: bold;
color: #28a745;
}
.health-value {
color: #6c757d;
font-weight: 500;
}
.health-issues {
margin-bottom: 30px;
}
.health-issues h3 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 1.3rem;
}
.health-issues-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.health-issue {
background: white;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #dc3545;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.health-issue.warning {
border-left-color: #ffc107;
}
.health-issue.info {
border-left-color: #17a2b8;
}
.health-issue-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 8px;
}
.health-issue-description {
color: #6c757d;
font-size: 14px;
line-height: 1.5;
}
.health-issue-count {
background: #dc3545;
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
margin-left: 10px;
}
.health-issue.warning .health-issue-count {
background: #ffc107;
color: #212529;
}
.health-issue.info .health-issue-count {
background: #17a2b8;
}
/* Recommendations */
.health-recommendations h3 {
color: #2c3e50;
margin-bottom: 20px;
font-size: 1.3rem;
}
.recommendations-list {
display: flex;
flex-direction: column;
gap: 15px;
}
.recommendation {
background: #e8f5e8;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #28a745;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.recommendation-title {
font-weight: 600;
color: #155724;
margin-bottom: 8px;
}
.recommendation-description {
color: #155724;
font-size: 14px;
line-height: 1.5;
}
/* Usage Patterns */
.usage-stats {
background: #f8f9fa;
padding: 25px;
border-radius: 12px;
margin-bottom: 30px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.usage-metric {
display: flex;
flex-direction: column;
gap: 8px;
}
.usage-label {
font-weight: 600;
color: #2c3e50;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.usage-value {
font-size: 1.3rem;
font-weight: bold;
color: #3498db;
}
/* Analytics Actions */
.analytics-actions {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #e9ecef;
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}
/* Responsive Analytics */
@media (max-width: 768px) {
.analytics-modal-content {
max-width: 95%;
margin: 5% auto;
padding: 20px;
}
.analytics-tabs {
flex-wrap: wrap;
gap: 5px;
}
.analytics-tab {
flex: 1;
min-width: 100px;
padding: 10px 12px;
font-size: 14px;
}
.summary-cards {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 15px;
}
.summary-card {
padding: 20px 15px;
}
.summary-value {
font-size: 2rem;
}
.analytics-charts {
grid-template-columns: 1fr;
gap: 20px;
}
.chart-container {
padding: 20px 15px;
}
.usage-stats {
grid-template-columns: 1fr;
gap: 15px;
padding: 20px;
}
.analytics-actions {
flex-direction: column;
}
.analytics-actions .btn {
width: 100%;
}
}
/* Empty State for Analytics */
.analytics-empty-state {
text-align: center;
padding: 60px 20px;
color: #6c757d;
}
.analytics-empty-state h3 {
margin-bottom: 15px;
color: #95a5a6;
}
.analytics-empty-state p {
font-size: 16px;
line-height: 1.5;
margin-bottom: 20px;
}
/* Chart Loading State */
.chart-loading {
display: flex;
align-items: center;
justify-content: center;
height: 200px;
color: #6c757d;
}
.chart-loading::before {
content: '';
width: 30px;
height: 30px;
border: 3px solid #f3f3f3;
border-top: 3px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 15px;
}
/* Bookmark Metadata Form Styles */
.rating-container {
display: flex;
flex-direction: column;
gap: 15px;
}
.star-rating {
display: flex;
gap: 5px;
align-items: center;
}
.star {
font-size: 24px;
color: #ddd;
cursor: pointer;
transition: color 0.2s ease;
user-select: none;
}
.star:hover,
.star.active {
color: #ffc107;
}
.star:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
border-radius: 2px;
}
.favorite-checkbox {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
font-size: 14px;
color: #2c3e50;
}
.favorite-checkbox input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.favorite-label {
user-select: none;
}
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
font-family: inherit;
resize: vertical;
min-height: 80px;
}
.form-group textarea:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
/* Tags display in bookmark items */
.bookmark-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 6px;
}
.bookmark-tag {
background: #e3f2fd;
color: #1976d2;
font-size: 11px;
padding: 2px 6px;
border-radius: 12px;
font-weight: 500;
}
/* Rating display in bookmark items */
.bookmark-rating {
display: flex;
align-items: center;
gap: 4px;
margin-top: 4px;
font-size: 12px;
}
.bookmark-stars {
color: #ffc107;
font-size: 12px;
}
.bookmark-favorite {
color: #e74c3c;
font-size: 14px;
}
/* Notes display in bookmark items */
.bookmark-notes {
color: #6c757d;
font-size: 12px;
font-style: italic;
margin-top: 4px;
line-height: 1.3;
max-height: 40px;
overflow: hidden;
text-overflow: ellipsis;
}
.bookmark-item:hover .bookmark-notes {
max-height: none;
overflow: visible;
}
/* Last visited tracking */
.bookmark-last-visited {
color: #28a745;
font-size: 11px;
margin-top: 2px;
}
/* Enhanced context modal for metadata */
.bookmark-metadata {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #e9ecef;
}
.bookmark-metadata-item {
margin-bottom: 8px;
font-size: 13px;
}
.bookmark-metadata-label {
font-weight: 600;
color: #2c3e50;
margin-right: 8px;
}
.bookmark-metadata-value {
color: #6c757d;
}
/* Bulk Actions Bar Styles */
.bulk-actions {
background: white;
padding: 15px 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
border-left: 4px solid #3498db;
}
.bulk-selection-info {
display: flex;
align-items: center;
gap: 10px;
}
.selection-count {
font-weight: 600;
color: #2c3e50;
background: #ecf0f1;
padding: 6px 12px;
border-radius: 20px;
font-size: 14px;
}
.bulk-action-buttons {
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
}
.bulk-folder-select {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
background: white;
min-width: 150px;
}
.bulk-folder-select:focus {
outline: none;
border-color: #3498db;
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
/* Folder Management Modal Styles */
.folder-management-content {
max-width: 700px;
max-height: 90vh;
overflow-y: auto;
}
.folder-management-section,
.folder-creation-section {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid #e9ecef;
}
.folder-management-section:last-child,
.folder-creation-section:last-child {
border-bottom: none;
}
.folder-management-section h3,
.folder-creation-section h3 {
margin-bottom: 15px;
color: #2c3e50;
font-size: 18px;
}
.folder-management-list {
display: flex;
flex-direction: column;
gap: 12px;
max-height: 400px;
overflow-y: auto;
}
.folder-management-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
transition: all 0.2s;
}
.folder-management-item:hover {
background-color: #e3f2fd;
border-color: #3498db;
}
.folder-info {
flex: 1;
min-width: 0;
}
.folder-name {
font-weight: 600;
color: #2c3e50;
margin-bottom: 4px;
font-size: 16px;
}
.folder-stats {
color: #6c757d;
font-size: 14px;
}
.folder-actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
/* Bookmark item enhancements for drag and drop and bulk selection */
.bookmark-item {
position: relative;
}
.bookmark-item[draggable="true"] {
cursor: grab;
}
.bookmark-item[draggable="true"]:active {
cursor: grabbing;
}
.bookmark-item.dragging {
opacity: 0.5;
transform: rotate(2deg);
cursor: grabbing;
}
.bookmark-item.bulk-selected {
background-color: #e3f2fd;
border-left: 4px solid #3498db;
}
.bookmark-checkbox {
margin-right: 12px;
width: 18px;
height: 18px;
cursor: pointer;
}
.bookmark-checkbox:focus {
outline: 2px solid #3498db;
outline-offset: 2px;
}
/* Folder card drag-over state */
.folder-card.drag-over {
border: 2px dashed #3498db;
background-color: rgba(52, 152, 219, 0.1);
transform: scale(1.02);
}
.folder-card.drag-over .folder-header {
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}
/* Sort modal styles */
#sortModal .modal-content {
max-width: 400px;
}
/* Active bulk mode button */
.btn.active {
background-color: #2c5aa0;
color: white;
box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
/* Responsive adjustments for organization features */
@media (max-width: 768px) {
.bulk-actions {
flex-direction: column;
align-items: stretch;
gap: 15px;
padding: 16px;
}
.bulk-selection-info {
justify-content: center;
}
.bulk-action-buttons {
justify-content: center;
flex-wrap: wrap;
gap: 12px;
}
.bulk-action-buttons .btn {
flex: 1;
min-width: 120px;
}
.bulk-folder-select {
width: 100%;
min-width: auto;
margin-bottom: 12px;
}
.folder-management-content {
max-width: 95%;
margin: 5% auto;
}
.folder-management-item {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.folder-actions {
width: 100%;
justify-content: space-between;
}
.folder-actions .btn {
flex: 1;
}
/* Enhanced bookmark items for mobile bulk selection */
.bookmark-item {
padding-left: 50px;
}
.bookmark-checkbox {
position: absolute;
left: 16px;
top: 50%;
transform: translateY(-50%);
width: 20px;
height: 20px;
}
}
/* Responsive adjustments for advanced search */
@media (max-width: 768px) {
.advanced-search-content {
max-width: 95%;
margin: 5% auto;
}
.search-actions {
flex-direction: column;
gap: 12px;
}
.search-actions .btn {
width: 100%;
justify-content: center;
}
.search-container {
max-width: none;
width: 100%;
flex-wrap: wrap;
}
.search-container input {
min-width: 200px;
flex: 1;
}
#advancedSearchBtn {
min-width: 100px;
}
.saved-search-item,
.search-history-item {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.saved-search-actions,
.search-history-actions {
align-self: flex-end;
}
}
/* Sh
are Modal Styles */
.share-modal-content {
max-width: 800px;
max-height: 90vh;
overflow-y: auto;
}
.share-tabs {
display: flex;
border-bottom: 2px solid #e9ecef;
margin-bottom: 20px;
}
.share-tab {
background: none;
border: none;
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #6c757d;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.share-tab:hover {
color: #495057;
background-color: #f8f9fa;
}
.share-tab.active {
color: #28a745;
border-bottom-color: #28a745;
background-color: #f8f9fa;
}
.share-tab-content {
display: none;
}
.share-tab-content.active {
display: block;
}
.share-section {
padding: 10px 0;
}
.privacy-settings {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin: 15px 0;
}
.privacy-settings h4 {
margin-top: 0;
margin-bottom: 15px;
color: #495057;
font-size: 16px;
}
.privacy-settings label {
display: block;
margin-bottom: 10px;
font-weight: normal;
}
.share-actions {
display: flex;
gap: 10px;
margin: 20px 0;
}
.share-url-result {
background-color: #d4edda;
border: 1px solid #c3e6cb;
border-radius: 6px;
padding: 15px;
margin-top: 15px;
}
.share-url-container {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.share-url-container input {
flex: 1;
padding: 8px 12px;
border: 1px solid #28a745;
border-radius: 4px;
background-color: white;
font-family: monospace;
font-size: 14px;
}
.share-stats {
font-size: 14px;
color: #155724;
}
.social-platforms {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
margin: 20px 0;
}
.social-btn {
display: flex;
align-items: center;
gap: 10px;
padding: 15px 20px;
border: 2px solid transparent;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
text-decoration: none;
transition: all 0.3s ease;
background: white;
}
.social-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.twitter-btn {
border-color: #1da1f2;
color: #1da1f2;
}
.twitter-btn:hover {
background-color: #1da1f2;
color: white;
}
.facebook-btn {
border-color: #4267b2;
color: #4267b2;
}
.facebook-btn:hover {
background-color: #4267b2;
color: white;
}
.linkedin-btn {
border-color: #0077b5;
color: #0077b5;
}
.linkedin-btn:hover {
background-color: #0077b5;
color: white;
}
.reddit-btn {
border-color: #ff4500;
color: #ff4500;
}
.reddit-btn:hover {
background-color: #ff4500;
color: white;
}
.social-icon {
font-size: 20px;
}
.social-preview {
background-color: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 15px;
margin: 20px 0;
}
.social-preview h4 {
margin-bottom: 10px;
color: #495057;
}
.social-post-preview {
background: white;
border: 1px solid #dee2e6;
border-radius: 6px;
padding: 15px;
}
.social-post-text {
margin-bottom: 10px;
line-height: 1.5;
color: #212529;
}
.social-post-link {
color: #007bff;
font-size: 14px;
text-decoration: underline;
}
.email-format {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin: 15px 0;
}
.email-format h4 {
margin-top: 0;
margin-bottom: 15px;
color: #495057;
font-size: 16px;
}
.email-format label {
display: block;
margin-bottom: 10px;
font-weight: normal;
}
.email-actions {
display: flex;
gap: 10px;
margin: 20px 0;
}
.recommendation-categories {
margin-bottom: 20px;
}
.category-tags {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-top: 10px;
}
.category-tag {
background-color: #007bff;
color: white;
padding: 6px 12px;
border-radius: 16px;
font-size: 12px;
font-weight: 500;
}
.similar-collections,
.recommended-bookmarks {
margin-bottom: 20px;
}
.collections-list,
.recommendations-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid #e9ecef;
border-radius: 6px;
background-color: #f8f9fa;
}
.collection-item,
.recommendation-item {
padding: 15px;
border-bottom: 1px solid #e9ecef;
background-color: white;
margin-bottom: 1px;
cursor: pointer;
transition: background-color 0.2s;
}
.collection-item:hover,
.recommendation-item:hover {
background-color: #f8f9fa;
}
.collection-item:last-child,
.recommendation-item:last-child {
border-bottom: none;
}
.collection-title,
.recommendation-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 5px;
}
.collection-description,
.recommendation-description {
color: #6c757d;
font-size: 14px;
margin-bottom: 8px;
}
.collection-stats,
.recommendation-stats {
display: flex;
gap: 15px;
font-size: 12px;
color: #adb5bd;
}
.recommendation-actions {
display: flex;
gap: 10px;
margin: 20px 0;
}
/* Templates Modal Styles */
.templates-modal-content {
max-width: 900px;
max-height: 90vh;
overflow-y: auto;
}
.templates-tabs {
display: flex;
border-bottom: 2px solid #e9ecef;
margin-bottom: 20px;
}
.templates-tab {
background: none;
border: none;
padding: 12px 20px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
color: #6c757d;
border-bottom: 2px solid transparent;
transition: all 0.3s ease;
}
.templates-tab:hover {
color: #495057;
background-color: #f8f9fa;
}
.templates-tab.active {
color: #17a2b8;
border-bottom-color: #17a2b8;
background-color: #f8f9fa;
}
.templates-tab-content {
display: none;
}
.templates-tab-content.active {
display: block;
}
.templates-section {
padding: 10px 0;
}
.template-categories {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
}
.category-filter {
padding: 8px 16px;
border: 2px solid #e9ecef;
border-radius: 20px;
background: white;
color: #6c757d;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
}
.category-filter:hover {
border-color: #17a2b8;
color: #17a2b8;
}
.category-filter.active {
background-color: #17a2b8;
border-color: #17a2b8;
color: white;
}
.templates-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.template-card {
background: white;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 20px;
transition: all 0.3s ease;
cursor: pointer;
}
.template-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
border-color: #17a2b8;
}
.template-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}
.template-title {
font-size: 18px;
font-weight: 600;
color: #2c3e50;
margin: 0;
}
.template-category {
background-color: #17a2b8;
color: white;
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 500;
text-transform: uppercase;
}
.template-description {
color: #6c757d;
font-size: 14px;
line-height: 1.5;
margin-bottom: 15px;
}
.template-stats {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: #adb5bd;
margin-bottom: 15px;
}
.template-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 15px;
}
.template-tag {
background-color: #f8f9fa;
color: #6c757d;
padding: 4px 8px;
border-radius: 12px;
font-size: 11px;
border: 1px solid #e9ecef;
}
.template-actions {
display: flex;
gap: 10px;
}
.template-actions .btn {
flex: 1;
font-size: 12px;
padding: 8px 12px;
}
.template-source,
.template-privacy {
background-color: #f8f9fa;
padding: 15px;
border-radius: 6px;
margin: 15px 0;
}
.template-source h4,
.template-privacy h4 {
margin-top: 0;
margin-bottom: 15px;
color: #495057;
font-size: 16px;
}
.template-privacy label {
display: block;
margin-bottom: 10px;
font-weight: normal;
}
.my-templates-list {
max-height: 400px;
overflow-y: auto;
}
.my-template-item {
background: white;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 15px;
margin-bottom: 15px;
display: flex;
justify-content: space-between;
align-items: center;
}
.my-template-info {
flex: 1;
}
.my-template-title {
font-weight: 600;
color: #2c3e50;
margin-bottom: 5px;
}
.my-template-meta {
font-size: 12px;
color: #6c757d;
}
.my-template-actions {
display: flex;
gap: 8px;
}
.my-template-actions .btn {
font-size: 12px;
padding: 6px 12px;
}
/* Responsive adjustments for sharing and templates */
@media (max-width: 768px) {
.share-modal-content,
.templates-modal-content {
max-width: 95%;
margin: 5% auto;
}
.social-platforms {
grid-template-columns: 1fr;
}
.social-btn {
justify-content: center;
}
.templates-grid {
grid-template-columns: 1fr;
}
.template-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.category-filter {
font-size: 12px;
padding: 6px 12px;
}
.share-actions,
.email-actions,
.recommendation-actions {
flex-direction: column;
}
.share-url-container {
flex-direction: column;
}
.my-template-item {
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.my-template-actions {
width: 100%;
justify-content: flex-end;
}
}
/*
Security Modal Styles */
.security-section {
margin-bottom: 25px;
padding: 20px;
background-color: #f8f9fa;
border-radius: 8px;
border-left: 4px solid #3498db;
}
.security-section h3 {
margin-bottom: 15px;
color: #2c3e50;
font-size: 16px;
display: flex;
align-items: center;
gap: 8px;
}
.encryption-info {
margin-top: 15px;
padding: 12px;
background-color: #e3f2fd;
border-radius: 6px;
border: 1px solid #bbdefb;
}
.encryption-info p {
margin: 0;
font-size: 14px;
color: #1565c0;
}
.audit-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.security-lock-message {
text-align: center;
margin-bottom: 20px;
padding: 20px;
background-color: #fff3cd;
border: 1px solid #ffeaa7;
border-radius: 8px;
}
.security-lock-message p {
margin: 0;
color: #856404;
font-size: 16px;
}
.security-info {
margin-top: 15px;
text-align: center;
}
.security-info p {
margin: 0;
color: #6c757d;
}
/* Security Audit Modal Styles */
.audit-modal-content {
max-width: 900px;
max-height: 90vh;
overflow-y: auto;
}
.audit-controls {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.audit-stats {
display: flex;
gap: 20px;
font-size: 14px;
color: #6c757d;
}
.audit-actions {
display: flex;
gap: 8px;
}
.audit-log-container {
max-height: 500px;
overflow-y: auto;
border: 1px solid #e9ecef;
border-radius: 8px;
background-color: #fff;
}
.audit-log {
padding: 10px;
}
.audit-log-item {
margin-bottom: 15px;
padding: 12px;
border: 1px solid #e9ecef;
border-radius: 6px;
background-color: #f8f9fa;
}
.audit-log-item:last-child {
margin-bottom: 0;
}
.audit-log-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.audit-action {
font-weight: 600;
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
text-transform: uppercase;
}
.audit-action.success {
background-color: #d4edda;
color: #155724;
}
.audit-action.warning {
background-color: #fff3cd;
color: #856404;
}
.audit-action.danger {
background-color: #f8d7da;
color: #721c24;
}
.audit-action.info {
background-color: #d1ecf1;
color: #0c5460;
}
.audit-action.default {
background-color: #e2e3e5;
color: #383d41;
}
.audit-timestamp {
font-size: 12px;
color: #6c757d;
font-family: monospace;
}
.audit-details {
font-size: 13px;
color: #495057;
}
.audit-session {
font-family: monospace;
font-size: 11px;
color: #6c757d;
margin-bottom: 4px;
}
.audit-extra {
font-family: monospace;
font-size: 11px;
color: #6c757d;
background-color: #e9ecef;
padding: 4px 6px;
border-radius: 3px;
word-break: break-all;
}
/* Security button styling */
#securityBtn {
background-color: #6c757d;
border-color: #6c757d;
}
#securityBtn:hover {
background-color: #5a6268;
border-color: #545b62;
}
/* Privacy indicators for bookmarks */
.bookmark-privacy-indicator {
position: absolute;
top: 8px;
right: 8px;
width: 16px;
height: 16px;
background-color: #ffc107;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
color: #212529;
}
.bookmark-privacy-indicator.private {
background-color: #dc3545;
color: white;
}
.bookmark-privacy-indicator.encrypted {
background-color: #6f42c1;
color: white;
}
/* Enhanced bookmark item for privacy controls */
.bookmark-item.private {
border-left: 3px solid #dc3545;
background-color: rgba(220, 53, 69, 0.05);
}
.bookmark-item.encrypted {
border-left: 3px solid #6f42c1;
background-color: rgba(111, 66, 193, 0.05);
}
/* Privacy toggle in context menu */
.privacy-controls {
margin-top: 15px;
padding: 15px;
background-color: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.privacy-controls h4 {
margin-bottom: 10px;
color: #2c3e50;
font-size: 14px;
}
.privacy-toggle {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.privacy-toggle input[type="checkbox"] {
margin: 0;
}
.privacy-toggle label {
margin: 0;
font-size: 14px;
color: #495057;
}
/* Responsive adjustments for security modals */
@media (max-width: 768px) {
.security-section {
padding: 15px;
margin-bottom: 20px;
}
.audit-controls {
flex-direction: column;
gap: 15px;
align-items: stretch;
}
.audit-stats {
justify-content: center;
flex-wrap: wrap;
}
.audit-actions {
justify-content: center;
}
.audit-log-header {
flex-direction: column;
align-items: flex-start;
gap: 5px;
}
.privacy-controls {
padding: 12px;
}
}