.domi-tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.domi-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.domi-tab-search input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

.domi-tab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 8px; 
}

.domi-tab-item {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 12px;
    cursor: move;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.domi-tab-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.domi-tab-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.domi-tab-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 8px;
}

.domi-tab-item span {
    font-size: 14px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.domi-tab-drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    opacity: 0;
    cursor: move;
    transition: opacity 0.2s;
}

.edit-mode .domi-tab-drag-handle {
    opacity: 0.5;
}

.domi-tab-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255,0,0,0.1);
    color: #ff4444;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    padding: 0;
    line-height: 1;
}

.edit-mode .domi-tab-delete {
    display: block;
}

.domi-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}

.sortable-ghost {
    opacity: 0.5;
}

.domi-tab-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
} 