/* Local Bookmarks Styles */

.local-bookmarks-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.2s;
}

.local-bookmarks-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.local-bookmarks-modal-content {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s;
}

.local-bookmarks-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #34495e;
}

.local-bookmarks-modal-header h2 {
    margin: 0;
    color: #3498db;
    font-size: 1.5em;
}

.local-bookmarks-close {
    font-size: 28px;
    font-weight: bold;
    color: #95a5a6;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    transition: color 0.2s;
}

.local-bookmarks-close:hover {
    color: #e74c3c;
}

.local-bookmarks-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.local-bookmarks-search {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: #34495e;
    border: 1px solid #7f8c8d;
    border-radius: 4px;
    color: #ecf0f1;
    font-size: 14px;
}

.local-bookmarks-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    white-space: nowrap;
}

.local-bookmarks-btn:hover {
    background: #2980b9;
}

.local-bookmarks-btn.success {
    background: #27ae60;
}

.local-bookmarks-btn.success:hover {
    background: #229954;
}

.local-bookmarks-btn.danger {
    background: #e74c3c;
}

.local-bookmarks-btn.danger:hover {
    background: #c0392b;
}

.local-bookmarks-btn.secondary {
    background: #95a5a6;
}

.local-bookmarks-btn.secondary:hover {
    background: #7f8c8d;
}

.local-bookmarks-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

.local-bookmarks-list {
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.local-bookmarks-item {
    background: #34495e;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.local-bookmarks-item:hover {
    background: #3d566e;
}

.local-bookmarks-item-info {
    flex: 1;
    cursor: pointer;
}

.local-bookmarks-item-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #3498db;
    margin-bottom: 4px;
}

.local-bookmarks-item-details {
    font-size: 0.9em;
    color: #bdc3c7;
}

.local-bookmarks-item-group {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.85em;
    margin-left: 8px;
}

.local-bookmarks-item-actions {
    display: flex;
    gap: 8px;
}

.local-bookmarks-item-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.local-bookmarks-item-btn:hover {
    background: #2980b9;
}

.local-bookmarks-item-btn.danger {
    background: #e74c3c;
}

.local-bookmarks-item-btn.danger:hover {
    background: #c0392b;
}

.local-bookmarks-form-group {
    margin-bottom: 15px;
}

.local-bookmarks-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #bdc3c7;
    font-weight: bold;
}

.local-bookmarks-form-group input,
.local-bookmarks-form-group select,
.local-bookmarks-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    background: #34495e;
    border: 1px solid #7f8c8d;
    border-radius: 4px;
    color: #ecf0f1;
    font-size: 14px;
    box-sizing: border-box;
}

.local-bookmarks-form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.local-bookmarks-form-group small {
    display: block;
    margin-top: 4px;
    color: #95a5a6;
    font-size: 0.85em;
}

.local-bookmarks-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #34495e;
}

.local-bookmarks-stats {
    background: #34495e;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.local-bookmarks-stat {
    text-align: center;
}

.local-bookmarks-stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #3498db;
}

.local-bookmarks-stat-label {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 4px;
}

.local-bookmarks-empty {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.local-bookmarks-empty-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.local-bookmarks-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.local-bookmarks-filter-tag {
    padding: 6px 12px;
    background: #34495e;
    border: 1px solid #7f8c8d;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s;
}

.local-bookmarks-filter-tag:hover {
    background: #3d566e;
}

.local-bookmarks-filter-tag.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.local-bookmarks-import-area {
    border: 2px dashed #7f8c8d;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.local-bookmarks-import-area:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.local-bookmarks-import-area.dragover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.local-bookmarks-alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.local-bookmarks-alert.success {
    background: rgba(39, 174, 96, 0.2);
    border-left: 4px solid #27ae60;
    color: #2ecc71;
}

.local-bookmarks-alert.error {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.local-bookmarks-alert.info {
    background: rgba(52, 152, 219, 0.2);
    border-left: 4px solid #3498db;
    color: #3498db;
}

.local-bookmarks-format-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: #34495e;
    border: 2px solid #7f8c8d;
    border-radius: 4px;
    color: #ecf0f1;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.local-bookmarks-format-btn:hover {
    background: #3d566e;
    border-color: #3498db;
}

.local-bookmarks-format-btn strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #ecf0f1;
    font-weight: bold;
}

.local-bookmarks-format-btn span {
    display: block;
    color: #bdc3c7;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.local-bookmarks-modal-content::-webkit-scrollbar,
.local-bookmarks-list::-webkit-scrollbar {
    width: 8px;
}

.local-bookmarks-modal-content::-webkit-scrollbar-track,
.local-bookmarks-list::-webkit-scrollbar-track {
    background: #2c3e50;
}

.local-bookmarks-modal-content::-webkit-scrollbar-thumb,
.local-bookmarks-list::-webkit-scrollbar-thumb {
    background: #7f8c8d;
    border-radius: 4px;
}

.local-bookmarks-modal-content::-webkit-scrollbar-thumb:hover,
.local-bookmarks-list::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}
