/**
 * Estilos para a página de Criação de Marcadores
 * Bookmark Creation Page Styles
 */

/* Estilos de presets movidos para preset-common.css */

/* Estilos para SortableJS */
.sortable-ghost {
    opacity: 0.4;
    background-color: #f8f9fa;
}

.sortable-chosen {
    background-color: #e3f2fd;
}

.sortable-drag {
    transform: rotate(2deg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.drag-handle {
    transition: color 0.2s ease;
}

.drag-handle:hover {
    color: #007bff !important;
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

/* Melhora a visualização durante o arrasto */
.bookmark-row.sortable-chosen {
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px solid #007bff;
}

.bookmark-row.sortable-ghost {
    opacity: 0.5;
    background-color: #f8f9fa;
}

/* Container da tabela com cabeçalho fixo */
.bookmark-table-wrapper {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
}

.bookmark-table-fixed-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    display: none;
}

.bookmark-table-fixed-header table {
    margin-bottom: 0;
}

.bookmark-table-scrollable {
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
}

.bookmark-table-scrollable .table {
    margin-bottom: 0;
}

.bookmark-table-scrollable .table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Highlight animation for new bookmark rows */
.highlight-new-row {
    animation: highlightNewRow 2s ease-in-out;
    border: 2px solid #28a745 !important;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1), transparent) !important;
}

@keyframes highlightNewRow {
    0% {
        background-color: rgba(40, 167, 69, 0.3);
        transform: scale(1.01);
    }
    50% {
        background-color: rgba(40, 167, 69, 0.2);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}