/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.font-geist-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Toggle switch customization */
input[type="checkbox"]:checked + div {
    @apply bg-gray-800;
}

input[type="checkbox"]:checked + div div {
    transform: translateX(100%);
}

/* Bookmark card styles */
.bookmark-card {
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.bookmark-card.dragging {
    opacity: 0.5;
    z-index: 10;
}

.bookmark-card.drag-over {
    border-color: #3b82f6;
    background-color: #f0f7ff;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    height: 8px;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #e2e8f0;
    height: 4px;
    border-radius: 1.5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -4px;
    background-color: #1f2937;
    height: 12px;
    width: 12px;
    border-radius: 50%;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Search engine dropdown styles */
#search-engines-dropdown {
    max-height: 500px;
    overflow-y: auto;
}

.search-engine-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
}

.search-engine-item:hover, .search-engine-item.selected {
    background-color: #f3f4f6;
}

.search-engine-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* Table styles */
#search-engines-tbody tr {
    transition: background-color 0.2s;
}

#search-engines-tbody tr:hover {
    background-color: #f9fafb;
}

#search-engines-tbody tr.dragging {
    background-color: #f3f4f6;
    opacity: 0.7;
}

#search-engines-tbody tr.drag-over {
    border-top: 2px solid #3b82f6;
}
